/* ═══════════════════════════════════════════════════════
   AUTH SHARED STYLES — Login & Register
   QR-Based Booking System — DISHUB Surabaya
   ═══════════════════════════════════════════════════════ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    background: #fff;
}

/* ── Split Layout ── */
.split-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ── Left Panel: Hero Image ── */
.hero-panel {
    flex: 1.15;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('/assets/image.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30, 42, 94, 0.85) 0%, rgba(30, 42, 94, 0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 40px 48px 100px;
    margin-top: -50px;
}

/* ── Logo Bar ── */
.logo-bar {
    position: absolute;
    top: 24px;
    left: 32px;
    right: 32px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-bar img {
    height: 38px;
}

.logo-bar .logo-text {
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.logo-bar .logo-text span {
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.logo-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 1px;
}

/* ── Badge ── */
.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.8);
    color: #1e2a5e;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    width: fit-content;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 500px;
}

/* ── Right Panel: Form Area ── */
.form-panel {
    flex: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 40px 24px;
    position: relative;
}

/* Register: scrollable panel */
.form-panel.scrollable {
    align-items: flex-start;
    overflow-y: auto;
}

/* ── Card UI ── */
.form-card {
    width: 100%;
    max-width: 440px;
    background: #b1c5e5;
    border-radius: 40px;
    padding: 50px 40px;
    position: relative;
    z-index: 10;
}

.form-panel.scrollable .form-card {
    margin: auto 0;
}

/* ── Form Header ── */
.form-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
}

.form-icon {
    margin-bottom: 15px;
    color: #fff;
}

.form-icon svg {
    width: 50px;
    height: 50px;
    stroke: #1e2a5e;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.form-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: #1e2a5e;
    margin-bottom: 8px;
}

.form-desc {
    color: #1e2a5e;
    font-size: 14px;
    font-weight: 500;
}

/* ── Form Fields ── */
.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1e2a5e;
    margin-bottom: 8px;
}

.field input {
    width: 100%;
    padding: 15px 20px;
    background: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #1e2a5e;
    transition: all 0.2s ease;
}

.field input::placeholder {
    color: #a0aabf;
    font-weight: 400;
}

.field input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 42, 94, 0.2);
}

.field.has-error input {
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.25);
}

.field .error-msg {
    color: #c53030;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

/* ── Password Toggle ── */
.pw-wrap {
    position: relative;
}

.pw-wrap input {
    padding-right: 48px;
}

.pw-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #a0aabf;
    transition: color 0.2s;
}

.pw-toggle:hover {
    color: #1e2a5e;
}

/* ── Submit Button ── */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: #11152b;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #1e2a5e;
}

/* ── Footer Link ── */
.form-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 13px;
    color: #1e2a5e;
}

.form-footer a {
    color: #1e2a5e;
    font-weight: 700;
    text-decoration: underline;
    margin-left: 4px;
}

/* ── Alerts ── */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #fff0f0;
    color: #c53030;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-panel {
        display: none;
    }

    .form-panel {
        flex: 1;
        background: #e8ecf4;
    }

    .form-card {
        max-width: 100%;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 36px 24px;
        border-radius: 16px;
    }
}
