/* login-overhaul.css */
:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #6366f1;
    /* Indigo-500 equivalent */
    --accent-hover: #4f46e5;
    --input-bg: #2d2d2d;
    --input-border: #404040;
    --error-color: #ef4444;
}

[data-theme="light"] {
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --accent-color: #6366f1;
    --accent-hover: #4f46e5;
    --input-bg: #ffffff;
    --input-border: #d1d5db;
}

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

body {
    font-family: 'Inter', sans-serif;
    /* Assuming Inter is available or fallback */
    background-color: var(--bg-color);
    color: var(--text-primary);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.login-form-wrapper>* {
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Waterfall/Staggered Delays */
.login-form-wrapper>*:nth-child(1) {
    animation-delay: 0.1s;
}

.login-form-wrapper>*:nth-child(2) {
    animation-delay: 0.2s;
}

.login-form-wrapper>*:nth-child(3) {
    animation-delay: 0.3s;
}

.login-form-wrapper>*:nth-child(4) {
    animation-delay: 0.4s;
}

.login-form-wrapper>*:nth-child(5) {
    animation-delay: 0.5s;
}

.login-form-wrapper>*:nth-child(6) {
    animation-delay: 0.6s;
}

/* Skeleton Loader */
.image-card.is-loading {
    background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

.image-card img {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.image-card.is-loaded img {
    opacity: 1;
}

/* View Transitions */
.brand-logo {
    view-transition-name: brand-logo;
}

.image-card {
    view-transition-name: main-image-card;
}

.quote-overlay {
    view-transition-name: quote-content;
}

.login-container {
    display: flex;
    width: 90%;
    max-width: 1600px;
    height: 896px;
    /* Match requested image height */
    max-height: 90vh;
    /* Don't exceed viewport */
    margin: auto;
    gap: 2rem;
    align-items: center;
}

/* Left Side - Form */
.login-left {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
    position: relative;
    z-index: 2;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: transparent;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--accent-color);
}

.form-control.is-invalid {
    border-color: var(--error-color);
}

.invalid-feedback {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-secondary);
    background: none;
    border: none;
    padding: 0;
}

.forgot-password {
    display: block;
    text-align: right;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.btn-primary {
    width: 100%;
    padding: 0.875rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 1rem;
}

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

.footer-links {
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: underline;
}

/* Right Side - Image */
.login-right {
    flex: 1.5;
    height: 100%;
    padding: 0;
    display: none;
    /* Hidden on mobile by default */
    align-items: center;
    justify-content: center;
}

.image-card {
    width: 100%;
    height: 100%;
    max-width: 1200px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background-color: #333;
    /* Placeholder */
}

/* Blend the left edge of the image with the background */
.image-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--bg-color) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

[data-theme="light"] .image-card::after {
    display: none;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.quote-text {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.quote-author {
    font-weight: 600;
    font-size: 1rem;
}

.quote-role {
    font-size: 0.875rem;
    opacity: 0.8;
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.dot.active {
    background-color: var(--accent-color);
    width: 24px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .login-container {
        height: auto;
        min-height: 100vh;
        padding: 2rem 0;
    }

    .login-right {
        display: none;
    }

    .logo-desktop {
        display: none !important;
    }

    .logo-mobile {
        display: block !important;
    }

    .login-form-wrapper {
        padding: 0 1.5rem;
        max-width: 100%;
        width: 100%;
    }

    h1 {
        font-size: 1.75rem;
    }
}

@media (min-width: 992px) {
    .login-right {
        display: block;
    }

    .logo-mobile {
        display: none !important;
    }

    .logo-desktop {
        display: block !important;
    }
}