/* assets/css/login.css */

.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0e7ff 100%);
    padding: 2rem;
}

.login-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 2.5rem 3.5rem;
    width: 100%;
    max-width: 440px;
    position: relative;
    box-shadow: 
        0 25px 50px -12px rgba(91, 33, 182, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    background-image: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.1) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 30px 60px -12px rgba(91, 33, 182, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.login-header {
    text-align: center;
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.login-header a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.login-header a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.btn-social:hover {
    background: var(--bg-light);
    border-color: var(--text-muted);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.google-icon, .passkey-icon {
    width: 20px;
    height: 20px;
}

.passkey-icon {
    color: #4f46e5;
}

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

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

.divider span {
    padding: 0 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

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

.form-control {
    width: 100%;
    padding: 0.85rem 1.2rem;
    background: #f8fafc;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--primary-light);
}

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

.eye-icon {
    position: absolute;
    right: 1rem;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

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

.forgot-link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

.btn-primary {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(91, 33, 182, 0.2), 0 2px 4px -1px rgba(91, 33, 182, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(91, 33, 182, 0.3), 0 4px 6px -2px rgba(91, 33, 182, 0.15);
}

/* Header link styles for login page */
.header-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

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

/* Mobile Utility Links */
.mobile-utility-links {
    display: none;
}

/* Mobile Media Queries */
@media (max-width: 768px) {
    .login-container {
        padding: 0;
        background: linear-gradient(180deg, var(--bg-light) 0%, #e0e7ff 100%);
    }

    .login-card {
        padding: 2.5rem 1.5rem;
        border: none;
        box-shadow: none;
        max-width: 100%;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        margin-top: 0;
        margin-bottom: 0;
    }

    .login-card:hover {
        transform: none;
        box-shadow: none;
    }

    .login-header h1 {
        font-size: 1.8rem;
    }

    .form-control, .btn-social, .btn-primary {
        padding: 1rem; /* Larger touch targets */
        font-size: 1rem;
    }

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

    .mobile-utility-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--surface-border);
    }

    .mobile-utility-links a {
        color: var(--text-muted);
        text-decoration: none;
        font-weight: 500;
        font-size: 0.95rem;
    }

    .mobile-utility-links a:hover {
        color: var(--primary-color);
    }
}

/* Login Tabs */
.login-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--surface-border);
}

.login-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.login-tab-btn:hover {
    color: var(--primary-color);
}

.login-tab-btn.login-active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
