/* --- Auth Common Layout (Split-Screen Foundation) --- */

.login-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    transition: background 0.4s ease;
    position: relative;
    overflow-x: hidden;
}

/* Base Wrapper for Split Layouts */
.split-auth-container {
    display: flex;
    flex: 1;
    width: 100%;
}

/* Left side: branding/marketing (standard across auth pages) */
.auth-side-info {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, #041d5d 100%);
    color: white;
    padding: 6rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-side-info::after {
    content: '';
    position: absolute;
    bottom: -15%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

/* Right side: form area */
.auth-side-form {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 6rem 2rem;
    background: var(--bg);
    position: relative;
    overflow-y: auto;
}

.auth-form-inner {
    width: 100%;
    max-width: 520px;
    animation: auth-fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Typography & Visuals */
.auth-side-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.auth-side-subtitle {
    font-size: 1.15rem;
    opacity: 0.85;
    margin-bottom: 3.5rem;
    max-width: 450px;
    line-height: 1.6;
}

.auth-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.75rem;
    letter-spacing: -1px;
}

.auth-subtitle {
    font-size: 1.1rem;
    color: var(--text-soft);
    margin-bottom: 2.5rem;
}

/* Common Header */
.auth-header {
    width: 100%;
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.auth-header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.2rem;
}

.auth-header-link {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-header-link:hover {
    color: var(--text);
}

/* Input Common Styling */
.auth-input-group {
    margin-bottom: 1.75rem;
}

.auth-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.auth-input {
    width: 100%;
    height: 3.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 1.25rem;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.auth-input:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--primary-glass), var(--shadow-md);
    outline: none;
}

/* Footer Section / Transitions (Flat Look) */
.auth-card-footer {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    text-align: left;
}

.auth-legal-footer {
    margin-top: 6rem;
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.auth-legal-footer a.legal-link,
.auth-legal-footer a.legal-link:link,
.auth-legal-footer a.legal-link:visited {
    color: var(--text-soft) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.auth-legal-footer a.legal-link:hover {
    color: var(--primary) !important;
    opacity: 1 !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

.auth-legal-footer .legal-sep {
    color: var(--text-soft);
    user-select: none;
    opacity: 0.3;
    font-size: 1.2rem;
    line-height: 1;
}

/* Animation Keys */
@keyframes auth-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Logic (Common Across Split UI) */
@media (max-width: 1024px) {
    .auth-side-info {
        padding: 5rem 3rem;
    }
}

@media (max-width: 991px) {
    .split-auth-container {
        display: block;
    }

    .auth-side-info {
        display: none !important;
    }

    .auth-side-form {
        padding: 6rem 1.5rem 4rem 1.5rem;
    }

    .auth-header {
        position: relative;
        padding: 1.5rem;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
    }

    .auth-legal-footer {
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 4rem;
    }
}
