:root {
    --brand-navy: #F2A65A;
    --brand-teal: #00AF66;
    --error-red: #EF4444;
    --warn-amber: #F59E0B;
    --text-main: #1A202C;
    --text-muted: #64748B;
    --input-bg: #F8FAFC;
    --border: #E2E8F0;
     --brand-secondary: #1A1A2E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    display: flex;
    height: 100vh;
    background: #fff;
    overflow: hidden;
}

/* =========================================
           LEFT HERO PANEL
        ========================================= */
.travel-hero {
    position: relative;
    flex: 1.2;
    background: url('../Assets/img-1.png') center/cover no-repeat, linear-gradient(135deg, rgba(242, 166, 90, 0.12) 0%, rgba(242, 166, 90, 0.12)100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 80px;
}

.travel-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(242, 166, 90, 0.12)  0%, rgba(242, 166, 90, 0.12)  100%);
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 520px;
}

.hero-content h1 {
    font-size: 2.7rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 12px;
    min-height: 3.5rem;
}

.hero-content p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.brand-pill {
    display: inline-block;
    background: var(--brand-secondary);
    color: var(--brand-navy);
    padding: 6px 16px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.text-slider-wrapper {
    position: relative;
}

.text-slide {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.text-slide.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.text-slide.exit {
    display: block;
    opacity: 0;
    transform: translateY(-20px);
}

.progress-container {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    align-items: center;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: var(--brand-navy);
    transform: scale(1.3);
}

.progress-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.progress-line {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-line-fill {
    height: 100%;
    background: var(--brand-navy);
    width: 0%;
    transition: width 0.1s linear;
}

/* =========================================
           RIGHT AUTH PANEL
        ========================================= */
.auth-side {
    flex: 0.85;
    background: white;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
    position: relative;
}

.auth-container {
    width: 100%;
    max-width: 460px;
    padding-top: 48px;
    padding-bottom: 48px;
}

.logo-container {
    margin-bottom: 36px;
}

.logo-container img {
    height: 52px;
}

.logo-fallback {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-navy);
}

.logo-fallback span {
    color: var(--brand-teal);
}

/* View transitions */
.form-view {
    animation: formFade 0.35s ease-out forwards;
}

@keyframes formFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-view h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 6px;
}

.form-view .subtitle {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* Input groups */
.input-group {
    margin-bottom: 18px;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-navy);
    margin-bottom: 7px;
}

.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="password"] {
    width: 100%;
    padding: 13px 16px;
    background: var(--input-bg);
    border: 1.5px solid transparent;
    border-radius: 12px;
    font-size: 0.97rem;
    transition: all 0.25s ease;
    color: var(--text-main);
}

.input-group input:focus {
    outline: none;
    background: white;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 4px rgba(0, 175, 102, 0.08);
}

.input-group input.input-error {
    border-color: var(--error-red) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.07);
}

.pass-wrapper {
    position: relative;
}

.pass-wrapper input {
    padding-right: 48px;
}

.toggle-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--brand-navy);
    opacity: 0.45;
    border: none;
    background: none;
    font-size: 1.15rem;
    transition: opacity 0.2s;
}

.toggle-btn:hover {
    opacity: 0.8;
}

/* Password strength */
.strength-meter {
    height: 4px;
    width: 100%;
    background: #E2E8F0;
    margin-top: 8px;
    border-radius: 2px;
    overflow: hidden;
    display: none;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: 0.3s ease;
    border-radius: 2px;
}

.strength-label {
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 5px;
    display: none;
}

/* Requirements checklist */
.pass-requirements {
    margin-top: 10px;
    display: none;
}

.req-item {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.req-item i {
    font-size: 0.85rem;
    color: #CBD5E0;
    transition: color 0.2s;
}

.req-item.met {
    color: var(--brand-teal);
}

.req-item.met i {
    color: var(--brand-teal);
}

.req-item.fail i {
    color: var(--error-red);
}

/* Inline error messages */
.msg-error {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--error-red);
    margin-top: 6px;
    display: none;
    align-items: center;
    gap: 5px;
}

.msg-error.show {
    display: flex;
}

.msg-success {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--brand-teal);
    margin-top: 6px;
    display: none;
    align-items: center;
    gap: 5px;
}

.msg-success.show {
    display: flex;
}

/* Terms checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 4px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-teal);
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
    border-radius: 4px;
}

.checkbox-group label {
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-group label a {
    color: var(--brand-teal);
    font-weight: 700;
    text-decoration: none;
}

/* Buttons */
.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--brand-navy);
    color: white;
    border: none;
    border-radius: 13px;
    font-weight: 700;
    font-size: 0.97rem;
    cursor: pointer;
    margin-top: 4px;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover:not(:disabled) {
    background: #001350;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 26, 114, 0.2);
}

.btn-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-submit .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .spinner {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-google {
    width: 100%;
    padding: 13px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--brand-navy);
    margin-top: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-google:hover {
    background: #F8FAFC;
    border-color: #CBD5E0;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.footer-text {
    text-align: center;
    margin-top: 24px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-text a {
    color: var(--brand-teal);
    font-weight: 700;
    text-decoration: none;
}

.forgot-link {
    text-align: right;
    margin-top: -10px;
    margin-bottom: 18px;
}

.forgot-link a {
    font-size: 0.82rem;
    color: var(--brand-teal);
    font-weight: 600;
    text-decoration: none;
}

.forgot-link a:hover {
    text-decoration: underline;
}

/* =========================================
           OTP INPUT
        ========================================= */
.otp-wrapper {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 24px 0;
}

.otp-input {
    width: 52px;
    height: 58px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--brand-navy);
    background: var(--input-bg);
    transition: all 0.2s;
    outline: none;
}

.otp-input:focus {
    border-color: var(--brand-teal);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 175, 102, 0.08);
}

.otp-input.otp-filled {
    border-color: var(--brand-teal);
    background: rgba(0, 175, 102, 0.04);
}

.otp-input.otp-error {
    border-color: var(--error-red);
    background: rgba(239, 68, 68, 0.04);
    animation: shakeX 420ms cubic-bezier(.36, .07, .19, .97);
}

.resend-row {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.resend-btn {
    background: none;
    border: none;
    color: var(--brand-teal);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
}

.resend-btn:disabled {
    color: var(--text-muted);
    cursor: default;
}

#countdown {
    font-weight: 700;
    color: var(--brand-navy);
}

.email-hint {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.email-hint strong {
    color: var(--brand-navy);
}

/* =========================================
           FORGOT / RESET PASSWORD
        ========================================= */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 28px;
    cursor: pointer;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--brand-navy);
}

.back-link i {
    font-size: 1rem;
}

/* =========================================
           2FA VIEW
        ========================================= */
.twofa-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0;
}

.method-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 13px;
    cursor: pointer;
    background: white;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-navy);
}

.method-btn:hover {
    border-color: var(--brand-teal);
    background: rgba(0, 175, 102, 0.03);
}

.method-btn.selected {
    border-color: var(--brand-teal);
    background: rgba(0, 175, 102, 0.05);
}

.method-btn .method-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.method-btn .method-icon.email-icon {
    background: rgba(0, 26, 114, 0.08);
    color: var(--brand-navy);
}

.method-btn .method-icon.sms-icon {
    background: rgba(0, 175, 102, 0.1);
    color: var(--brand-teal);
}

.method-btn .method-icon.app-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warn-amber);
}

.method-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
}

.method-btn .check {
    margin-left: auto;
    color: var(--brand-teal);
    display: none;
}

.method-btn.selected .check {
    display: block;
}

/* =========================================
           SUCCESS / INFO STATES
        ========================================= */
.success-icon-wrap {
    text-align: center;
    margin: 20px 0 24px;
}

.success-icon-wrap i {
    font-size: 4rem;
    color: var(--brand-teal);
}

.info-box {
    background: rgba(0, 175, 102, 0.06);
    border: 1px solid rgba(0, 175, 102, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.info-box i {
    color: var(--brand-teal);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* =========================================
           MODAL
        ========================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 20, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay.show {
    display: flex;
}

.modal-card {
    width: 92%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 16px 48px rgba(2, 6, 23, 0.14);
    text-align: center;
    animation: modalIn 260ms ease;
}

.modal-card .modal-icon i {
    font-size: 3.5rem;
    color: var(--brand-teal);
}

.modal-card h3 {
    margin: 12px 0 8px;
    font-size: 1.2rem;
    color: var(--brand-navy);
}

.modal-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-modal {
    padding: 11px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.2s;
}

.btn-primary-modal {
    background: var(--brand-navy);
    color: white;
}

.btn-primary-modal:hover {
    background: #001350;
}

.btn-ghost {
    background: white;
    border: 1.5px solid var(--border);
    color: var(--brand-navy);
}

.btn-ghost:hover {
    background: var(--input-bg);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================
           ANIMATIONS & HELPERS
        ========================================= */
@keyframes shakeX {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }

    100% {
        transform: translateX(0);
    }
}

.shake {
    animation: shakeX 420ms cubic-bezier(.36, .07, .19, .97);
}

/* =========================================
           RESPONSIVE
        ========================================= */
@media (max-width: 1024px) {
    .travel-hero {
        display: none;
    }

    .auth-side {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .auth-side {
        padding: 24px;
    }

    .auth-container {
        padding-top: 32px;
    }

    .otp-input {
        width: 44px;
        height: 52px;
        font-size: 1.3rem;
    }

    .form-view h2 {
        font-size: 1.7rem;
    }
}