/* --- LOGIN PAGE CSS --- */

body {
    overflow: hidden;
}

.login-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Back Button */
.back-button {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-slate);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    z-index: 50;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: var(--transition-fast);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Left Panel */
.login-brand {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    color: var(--dark-slate);
    border-right: 1px solid var(--border-light);
}

.brand-content {
    position: relative;
    z-index: 10;
    max-width: 500px;
}

.large-logo {
    margin-bottom: 2rem;
}

.large-logo .logo-icon {
    width: 60px;
    height: 60px;
}

.large-logo .logo-text {
    font-size: 2.5rem;
}

.brand-tagline {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-slate);
}

.brand-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Right Panel */
.login-form-container {
    width: 500px;
    background: var(--surface-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.login-header {
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-slate);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
}

.input-wrapper input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.forgot-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

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

/* Buttons */
.btn-block {
    width: 100%;
    padding: 0.9rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}

.btn-submit {
    margin-top: 0.5rem;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 1rem 0;
}

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

.divider span {
    padding: 0 0.5rem;
}

.btn-outline {
    background: #fff;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition-fast);
}

.btn-outline:hover {
    background: var(--surface-glass);
    border-color: #cbd5e1;
}

.signup-text {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.signup-text a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.signup-text a:hover {
    text-decoration: underline;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    body {
        overflow-y: auto; /* Allow scrolling on mobile */
    }

    .login-layout {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .login-brand {
        padding: 3rem 1.5rem 2rem 1.5rem;
        align-items: center;
        text-align: center;
        border-right: none;
        flex: none;
    }

    .large-logo {
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .brand-tagline {
        font-size: 2rem;
    }

    .brand-desc {
        font-size: 1rem;
    }

    .login-form-container {
        width: 100%;
        padding: 1.5rem;
        align-items: flex-start; /* Move card higher up on mobile */
    }

    .login-card {
        padding: 2rem 1.5rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    }
    
    .back-button {
        top: 1rem;
        left: 1rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}
