@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --brand-navy: #001A72;
    --brand-teal: #00AF66;
    --error-red: #EF4444;
    --text-main: #1A202C;
    --text-muted: #64748B;
    --input-bg: #F8FAFC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    display: flex;
    height: 100vh;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

/* --- LEFT SIDE: THE TRAVEL EXPERIENCE --- */
.travel-hero {
    position: relative;
    flex: 1.2;
    background: url('../Assets/img-1.png') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 80px;
}

.travel-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 26, 114, 0.2) 0%, rgba(0, 26, 114, 0.9) 100%);
    z-index: 1;
}

/* Geometric Dot Pattern Overlay */
.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 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: 600;
    line-height: 1.1;
    margin-bottom: 10px;
    min-height: 3.3rem;
}

.hero-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* Rotating Text Animation Styles */
.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 Bar */
.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-teal);
    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-teal);
    width: 0%;
    transition: width 0.1s linear;
}

.brand-pill {
    display: inline-block;
    background: var(--brand-teal);
    color: var(--brand-navy);
    padding: 6px 16px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* --- RIGHT SIDE: THE AUTH FORM --- */
.auth-side {
    flex: 0.85;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow-y: scroll;
    position: relative;
}

.auth-container {
    padding-top: 6rem;
    width: 100%;
    max-width: 600px;

}

.logo-container {
    /* margin-bottom: 40px; */
    text-align: left;
}

.logo-container img {
    height: 80px;
}

.form-view h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--brand-navy);
    margin-bottom: 8px;
}

.form-view .subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-navy);
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 1.5px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s 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);
}

.pass-wrapper {
    position: relative;
}

.toggle-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--brand-navy);
    opacity: 0.5;
    border: none;
    background: none;
    font-size: 1.2rem;
}

/* Error & Strength Handling */
.msg-error {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--error-red);
    margin-top: 6px;
    display: none;
    align-items: center;
    gap: 4px;
}

.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;
}

/* Buttons */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--brand-navy);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #001350;
    transform: translateY(-1px);
}

.btn-google {
    width: 100%;
    padding: 14px;
    background: white;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    color: var(--brand-navy);
    margin-top: 24px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-google:hover {
    background: #F8FAFC;
}

.footer-text {
    text-align: center;
    margin-top: 32px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-text a {
    color: var(--brand-teal);
    font-weight: 800;
    text-decoration: none;
}

/* Animations */
.fade-in {
    animation: formFade 0.4s ease-out forwards;
}

@keyframes formFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .travel-hero {
        display: none;
    }

    .auth-side {
        flex: 1;
    }
}

/* Confirm password error + shake */
.input-error {
    border-color: #EF4444 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.08);
}

@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);
}

/* Success modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 20, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-card {
    width: 92%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.12);
    text-align: center;
    transform: translateY(8px);
    animation: modalIn 260ms ease;
}

.modal-icon i {
    font-size: 4rem;
    color: var(--brand-teal);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.98)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

.modal-card h3 {
    margin-bottom: 8px;
    color: var(--brand-navy);
}

.modal-card p {
    color: var(--text-muted);
    margin-bottom: 18px;
}

.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-modal {
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 700;
}

.btn-primary-modal {
    background: var(--brand-navy);
    color: white;
}

.btn-ghost {
    background: white;
    border: 1px solid #E6E9F2;
}

