/* ========================================================
   Auth Pages — Sign In / Sign Up / Forgot / OTP / Reset
   Brand: #00334f | Font: Mulish
======================================================== */

.auth-page-wrap {
    background: #f0f4f8;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 16px;
}

.auth-card-wrap {
    display: flex;
    width: 100%;
    max-width: 940px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 24px rgba(0, 51, 79, 0.12);
    align-self: flex-start;
}

/* ── Left Panel ── */
.auth-panel {
    background: #00334f;
    flex: 0 0 340px;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-panel-logo {
    display: block;
    margin-bottom: 28px;
}

.auth-panel-logo img {
    height: 36px;
    width: auto;
}

.auth-panel h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.35;
}

.auth-panel p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 28px;
    line-height: 1.6;
}

.auth-panel-features {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.auth-panel-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.85);
}

.auth-panel-feature i {
    color: #6dd4a4;
    font-size: 15px;
    flex-shrink: 0;
}

/* ── Right Form ── */
.auth-form-panel {
    flex: 1;
    padding: 40px 40px;
    display: flex;
    align-items: flex-start;
}

.auth-form-inner {
    width: 100%;
}

.auth-form-title {
    font-size: 22px;
    font-weight: 700;
    color: #00334f;
    margin: 0 0 4px;
}

.auth-form-sub {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px;
}

.auth-form-sub a,
.auth-link {
    color: #00334f;
    font-weight: 600;
    text-decoration: none;
}

.auth-form-sub a:hover,
.auth-link:hover {
    text-decoration: underline;
}

/* Icon Badge */
.auth-badge {
    width: 52px;
    height: 52px;
    background: #e5eff5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.auth-badge i {
    font-size: 20px;
    color: #00334f;
}

/* Alerts */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.auth-alert i {
    margin-top: 1px;
    flex-shrink: 0;
}

.auth-alert-error {
    background: #fff1f1;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

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

/* Form Fields */
.auth-group {
    margin-bottom: 16px;
}

.auth-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.auth-label .req {
    color: #dc2626;
    font-weight: 400;
}

.auth-field {
    position: relative;
}

.auth-field-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0b8c4;
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
}

.auth-input {
    width: 100%;
    height: 44px;
    padding: 0 40px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
    font-family: Mulish, sans-serif;
    box-sizing: border-box;
}

.auth-input:focus {
    border-color: #00334f;
    box-shadow: 0 0 0 3px rgba(0, 51, 79, 0.09);
}

.auth-input::placeholder {
    color: #c4cad4;
}

.auth-pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #b0b8c4;
    cursor: pointer;
    padding: 4px;
    font-size: 13px;
    line-height: 1;
}

.auth-pw-toggle:hover {
    color: #00334f;
}

.auth-forgot {
    display: block;
    text-align: right;
    font-size: 13px;
    color: #00334f;
    text-decoration: none;
    margin-top: 6px;
    font-weight: 500;
}

.auth-forgot:hover {
    text-decoration: underline;
}

/* OTP input */
.auth-input-otp {
    font-size: 22px;
    letter-spacing: 10px;
    text-align: center;
    font-weight: 600;
}

.auth-hint {
    font-size: 12px;
    color: #9ca3af;
    margin: 6px 0 0;
}

/* Country dropdown */
.auth-country-wrap {
    position: relative;
}

.auth-country-dropdown {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 3px);
    left: 0;
    right: 0;
    max-height: 190px;
    overflow-y: auto;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    display: none;
}

.auth-country-dropdown a {
    display: block;
    padding: 9px 14px;
    font-size: 13.5px;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
}

.auth-country-dropdown a:last-child {
    border-bottom: none;
}

.auth-country-dropdown a:hover {
    background: #f0f7ff;
    color: #00334f;
}

/* Two-column row for sign-up */
.auth-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Submit button */
.auth-submit {
    width: 100%;
    height: 46px;
    background: #00334f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: Mulish, sans-serif;
    transition: background 0.18s;
    margin-top: 6px;
    letter-spacing: 0.2px;
}

.auth-submit:hover {
    background: #004b70;
}

.auth-submit:active {
    background: #002b40;
}

/* Back link */
.auth-back {
    text-align: center;
    margin-top: 20px;
}

.auth-back a {
    font-size: 13.5px;
    color: #6b7280;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-back a:hover {
    color: #00334f;
}

/* Password strength */
.pw-strength {
    margin-top: 8px;
}

.pw-bar-bg {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.pw-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}

.pw-bar-label {
    font-size: 12px;
    color: #9ca3af;
}

/* ── Responsive ── */

/* Tablet: hide left panel text, shrink */
@media (max-width: 860px) {
    .auth-card-wrap {
        max-width: 600px;
        flex-direction: column;
    }

    .auth-panel {
        flex: none;
        padding: 28px 28px;
    }

    .auth-panel h2 {
        font-size: 18px;
    }

    .auth-panel p,
    .auth-panel-features {
        display: none;
    }

    .auth-panel-logo {
        margin-bottom: 0;
    }

    .auth-form-panel {
        padding: 32px 28px;
    }
}

/* Mobile: stack fully */
@media (max-width: 560px) {
    .auth-page-wrap {
        padding: 16px 12px;
        align-items: flex-start;
    }

    .auth-card-wrap {
        border-radius: 12px;
        max-width: 100%;
    }

    .auth-panel {
        padding: 20px 20px;
    }

    .auth-form-panel {
        padding: 24px 20px;
    }

    .auth-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-form-title {
        font-size: 20px;
    }

    .auth-input {
        height: 42px;
    }
}
