/* ============================================
   sparQ Login Page - Split Layout Design
   ============================================ */

:root {
    --auth-card-width: 400px;
    --auth-card-padding: 2rem;
    --primary-color: #4285f4;
    --text-dark: #202124;
    --text-muted: #5f6368;
    --border-color: #dadce0;
    --bg-light: #f8f9fa;
    --bg-gradient: linear-gradient(135deg, #fff9e6 0%, #fef3cd 100%);
}

/* ============================================
   Page Layout - Split View
   ============================================ */

.auth-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: var(--bg-light);
}

.auth-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Left Side - Login Form */
.auth-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: white;
}

/* Right Side - Marketing Panel */
.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--bg-gradient);
    color: #5d4e37;
}

/* ============================================
   Auth Container (Left Side Content)
   ============================================ */

.auth-container {
    width: 100%;
    max-width: var(--auth-card-width);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Branding - Company Name or Logo */
.auth-branding {
    text-align: center;
    margin-bottom: 0.5rem;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0.5rem 0 0 0;
    letter-spacing: -0.3px;
}

.auth-logo {
    height: 50px;
    width: auto;
}

/* Login Box */
.auth-box {
    background: white;
    padding: var(--auth-card-padding);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.auth-box h2 {
    margin: 0 0 1.5rem 0;
    text-align: center;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 500;
}

/* Demo hint */
.demo-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #e8f0fe;
    border-radius: 4px;
}

/* Form styling */
.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.15);
    outline: none;
}

.form-check {
    margin: 1rem 0;
}

.form-check-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background-color: #3367d6;
    border-color: #3367d6;
}

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

/* ============================================
   OAuth Buttons
   ============================================ */

.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-dark);
}

.btn-oauth:hover {
    background: var(--bg-light);
    text-decoration: none;
    color: var(--text-dark);
}

.btn-oauth i {
    font-size: 1.125rem;
}

/* Google */
.btn-oauth-google {
    border-color: #dadce0;
}
.btn-oauth-google:hover {
    background: #f8f9fa;
    border-color: #c4c7cc;
}
.btn-oauth-google i {
    color: #4285F4;
}

/* Microsoft */
.btn-oauth-microsoft {
    border-color: #dadce0;
}
.btn-oauth-microsoft:hover {
    background: #f8f9fa;
    border-color: #c4c7cc;
}
.btn-oauth-microsoft i {
    color: #00A4EF;
}

/* GitHub */
.btn-oauth-github {
    border-color: #dadce0;
}
.btn-oauth-github:hover {
    background: #f8f9fa;
    border-color: #c4c7cc;
}
.btn-oauth-github i {
    color: #333333;
}

/* LinkedIn */
.btn-oauth-linkedin {
    border-color: #dadce0;
}
.btn-oauth-linkedin:hover {
    background: #f8f9fa;
    border-color: #c4c7cc;
}
.btn-oauth-linkedin i {
    color: #0A66C2;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 400;
}

/* Forgot Password Link */
.forgot-password-link {
    font-size: 0.875rem;
    color: var(--primary-color);
    text-decoration: none;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    padding-top: 1rem;
}

.auth-footer small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   Marketing Panel (Right Side Content)
   ============================================ */

.marketing-panel {
    text-align: center;
    max-width: 400px;
}

/* Marketing Headline */
.marketing-headline {
    margin-bottom: 2rem;
}

.marketing-headline h2 {
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.3;
    color: #5d4e37;
    margin: 0;
}

.marketing-headline h2 strong {
    font-weight: 700;
}

/* Tagline Rotation */
.tagline-container {
    position: relative;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tagline {
    position: absolute;
    font-size: 1.5rem;
    font-weight: 300;
    color: #6d5d4a;
    margin: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    white-space: nowrap;
}

.tagline.active {
    opacity: 1;
}

/* Hosted Mode - Feature List */
.marketing-panel.hosted {
    text-align: left;
}

.marketing-panel.hosted h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.marketing-panel.hosted .lead {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.75rem 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-list li i {
    color: #4ade80;
    font-size: 1rem;
}

/* ============================================
   Flash Messages
   ============================================ */

.flash-messages {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 500px;
    z-index: 1000;
}

.alert {
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet - Stack vertically */
@media (max-width: 991px) {
    .auth-wrapper {
        flex-direction: column;
    }

    .auth-left {
        order: 2;
        padding: 2rem 1.5rem;
    }

    .auth-right {
        order: 1;
        padding: 2rem;
        min-height: auto;
    }

    .marketing-panel {
        max-width: 100%;
    }

    .marketing-logo {
        height: 50px;
        margin-bottom: 1rem;
    }

    .tagline-container {
        height: 2rem;
    }

    .tagline {
        font-size: 1.125rem;
    }
}

/* Mobile - Hide marketing panel */
@media (max-width: 767px) {
    .auth-right {
        display: none;
    }

    .auth-left {
        padding: 1.5rem 1rem;
    }

    .auth-container {
        gap: 1rem;
    }

    .company-name {
        font-size: 1.5rem;
    }

    .auth-logo {
        height: 40px;
    }

    .auth-box {
        padding: 1.5rem;
    }

    .auth-box h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

/* Very small screens */
@media (max-width: 375px) {
    .auth-left {
        padding: 1rem 0.75rem;
    }

    .auth-box {
        padding: 1.25rem;
    }
}
