@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Host+Grotesk:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap');

/* --- VARIABLES & RESET --- */
:root {
    --color-primary: #0f172a;
    --color-primary-hover: #1e293b;
    --color-accent: #3b82f6;
    --color-bg: #ffffff;
    --color-border: #d1d5db;
    --color-text-muted: #64748b;
    --color-error: #ef4444;
    --color-success: #10b981;
    --radius-md: 5px;
    --radius-lg: 5px;
    --radius-full: 50px;
}

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

body {
    font-family: "Host Grotesk", sans-serif !important;
    background-color: var(--color-bg);
    color: var(--color-primary);
    height: 100vh;
    display: flex;
    overflow: hidden;
}

/* --- LEFT SIDE: CAROUSEL --- */
.carousel-side {
    flex: 6;
    min-width: 50%;
    background: #ffffff;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 60px 80px 60px;
    position: relative;
}

.carousel-content {
    width: 100%;
    max-width: 650px;
    margin: 0;
    position: relative;
    z-index: 3;
}

.carousel-item {
    display: none;
    animation: fadeEffect 0.8s ease;
}

.carousel-item.active {
    display: block;
}

@keyframes fadeEffect {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stability Fix for Text Height */
.feature-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    min-height: 80px;
    display: flex;
    align-items: flex-end;
}

.feature-desc {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 24px;
    min-height: 80px;
}

/* Full Screen Backgrounds */
.carousel-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: #ffffff;
}

.bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.bg-img.active {
    opacity: 1;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 50%);
    z-index: 2;
    pointer-events: none;
}

/* Pricing Grid */
.pricing-grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.price-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 16px;
    flex: 1;
}

.price-amount {
    font-size: 28px;
    font-weight: 700;
    margin: 10px 0;
}

.price-sub {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.8;
}

.indicators {
    display: flex;
    gap: 8px;
    margin-top: 30px;
    justify-content: flex-start;
    position: relative;
    z-index: 3;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.dot.active {
    width: 24px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.copyright {
    font-size: 12px;
    color: var(--color-text-muted);
    opacity: 0.7;
    margin-top: 30px;
    margin-bottom: 10px;
    text-align: center;
    z-index: 3;
}

.copyright a {
    color: inherit;
    text-decoration: underline;
}

.copyright a:hover {
    color: var(--color-primary);
}

/* --- RIGHT SIDE: LOGIN FORM --- */
.login-side {
    flex: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    position: relative;
    background: white;
    overflow-y: auto;
}

.login-container {
    width: 100%;
    max-width: 380px;
    margin: auto 0;
    padding: 20px 0;
    animation: slideUp 0.5s ease-out;
    display: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

.header-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-primary);
}

p.subtitle {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    line-height: 1.5;
}

label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

input {
    width: 100%;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

input:focus {
    border-color: var(--color-primary);
}

.otp-input {
    font-size: 18px;
    letter-spacing: 4px;
    text-align: center;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 20px 20px;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-family: inherit;
    transition: transform 0.1s;
    position: relative;
    gap: 12px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
}

.btn-verify {
    background-color: var(--color-accent);
    color: white;
}

.btn-google {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    color: #374151;
    margin-top: 16px;
}

.btn-google:hover:not(:disabled) {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.btn-google:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-link {
    background: none;
    border: none;
    font-size: 12px;
    color: var(--color-text-muted);
    width: 100%;
    margin-top: 15px;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #9ca3af;
}

.line {
    height: 1px;
    background: #e5e7eb;
    flex: 1;
}

.or-text {
    font-size: 12px;
    padding: 0 10px;
}

.footer-links {
    margin-top: 32px;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.6;
    text-align: center;
}

.footer-links a {
    color: #4b5563;
    text-decoration: underline;
}

/* Language Selector */
.language-selector {
    margin-top: auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 30px;
    width: 100%;
    max-width: 380px;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--color-border);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.7;
}

.lang-btn:hover {
    border-color: var(--color-primary);
    background-color: #f9fafb;
    opacity: 1;
}

.lang-btn.active {
    opacity: 1;
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lang-flag {
    width: 22px;
    height: 22px;
    object-fit: cover;
    border-radius: 50%;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.loading-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.loading-text {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.pulse-content {
    animation: pulse 1.5s infinite ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
        transform: scale(0.98);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0.6;
        transform: scale(0.98);
    }
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--color-primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.4s;
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.error {
    background-color: var(--color-error);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    body {
        flex-direction: column;
        overflow-y: auto;
        height: auto;
    }

    .carousel-side {
        flex: none;
        width: 100%;
        min-height: 500px;
        padding: 40px 20px;
    }

    .login-side {
        flex: none;
        width: 100%;
        padding: 40px 20px;
    }
}

.hidden {
    display: none !important;
}