/* ========================================== */
/* AWWWARDS SPLIT-SCREEN AUTH LAYOUT          */
/* ========================================== */

.auth-split-root {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: var(--theme-bg);
}

/* Left Pane: Visual Graphic */
.auth-visual-pane {
    flex: 1;
    display: none;
    position: relative;
    background: #000;
    overflow: hidden;
}

@media (min-width: 992px) {
    .auth-visual-pane {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 4rem;
    }
}

.auth-visual-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Dark gritty background */
    background: radial-gradient(circle at 20% 30%, rgba(var(--theme-yellow-rgb, 240, 196, 25), 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(var(--accent-blue-rgb, 59, 130, 246), 0.15) 0%, transparent 50%);
    background-color: #0f172a;
    z-index: 1;
}

.auth-visual-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Grain overlay */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    z-index: 2;
    pointer-events: none;
}

.auth-visual-content {
    position: relative;
    z-index: 3;
}

.auth-visual-typography {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    margin: 0;
}

.auth-visual-typography .accent {
    color: var(--theme-yellow, #f59e0b);
    display: block;
}

.auth-visual-description {
    margin-top: 2rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 400px;
    font-weight: 300;
    line-height: 1.6;
}

/* Right Pane: Form Area */
.auth-form-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
    background-color: var(--theme-bg);
}

.auth-form-wrapper {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-form-header {
    margin-bottom: 2.5rem;
}

.auth-form-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--theme-text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.auth-form-subtitle {
    color: var(--theme-text-muted);
    font-size: 1rem;
}

/* Minimal Inputs */
.auth-split-root .form-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--theme-text-muted);
    margin-bottom: 0.5rem;
}

.auth-split-root .input-group-text {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--theme-border);
    border-radius: 0;
    color: var(--theme-text-muted);
}

.auth-split-root .form-control {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid var(--theme-border) !important;
    border-radius: 0 !important;
    color: var(--theme-text) !important;
    padding-left: 0.5rem;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

.auth-split-root .form-control:focus {
    border-color: var(--theme-yellow) !important;
}

.auth-split-root .input-group:focus-within .input-group-text {
    border-color: var(--theme-yellow);
    color: var(--theme-yellow);
}

/* Solid Minimal Buttons */
.btn-auth-solid {
    background: var(--theme-text);
    color: var(--theme-bg);
    border: none;
    border-radius: 0;
    padding: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-auth-solid:hover {
    background: var(--theme-yellow);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(240, 196, 25, 0.2);
}

.btn-auth-solid:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Minimal Outline Button (Google) */
.btn-auth-outline {
    background: transparent;
    color: var(--theme-text);
    border: 1px solid var(--theme-border);
    border-radius: 0;
    padding: 1rem;
    font-weight: 600;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-auth-outline:hover {
    border-color: var(--theme-text);
    background: var(--theme-surface-alt);
}

/* Links */
.auth-split-link {
    color: var(--theme-text-muted);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.auth-split-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; width: 0%; height: 2px;
    background: var(--theme-yellow);
    transition: width 0.3s ease;
}

.auth-split-link:hover {
    color: var(--theme-text);
}
.auth-split-link:hover::after {
    width: 100%;
}

/* Back Button */
.btn-back-minimal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--theme-text);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    z-index: 20;
}

.btn-back-minimal:hover {
    color: var(--theme-yellow);
    transform: translateX(-5px);
}

/* Layout Decor */
.auth-form-bg-shape {
    position: absolute;
    top: -20%; right: -20%;
    width: 500px; height: 500px;
    background: var(--theme-yellow);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

/* ========================================== */
/* RESPONSIVE                                 */
/* ========================================== */

@media (max-width: 991px) {
    .auth-split-root { flex-direction: column; }
    .auth-visual-pane { display: none; }
    .auth-form-pane {
        padding: 4rem 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .auth-form-container { width: 100%; max-width: 420px; }
    
    .btn-back-minimal {
        top: 1rem;
        right: 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .auth-form-pane { padding: 3rem 1.5rem; }
    .auth-header-title { font-size: 2.2rem; }
    .auth-form-container { max-width: 100%; }
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
