/* Authentication Pages Styles */
html, body {
    height: 100%;
}

.auth-page {
    background: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Background effects */
.auth-page::before,
.auth-page::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

.auth-page::before {
    background: var(--primary);
    top: -200px;
    left: -200px;
}

.auth-page::after {
    background: var(--accent);
    bottom: -200px;
    right: -200px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
}

.auth-logo {
    margin-bottom: 32px;
    transform: scale(1.1);
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

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

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.forgot-password {
    font-size: 0.85rem;
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #a78bfa;
    text-decoration: underline;
}

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

.input-wrapper input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(108, 63, 249, 0.05);
    box-shadow: 0 0 0 3px rgba(108, 63, 249, 0.15);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: var(--text-secondary);
}

.auth-submit {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(108, 63, 249, 0.3);
}

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

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

.auth-divider span {
    padding: 0 16px;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-google:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.auth-terms {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 8px;
    line-height: 1.5;
}

.auth-terms a {
    color: var(--text-primary);
    text-decoration: underline;
}

.auth-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-light);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.error-text {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 4px;
}

.error-text.hidden {
    display: none;
}

.input-wrapper input.invalid {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.input-wrapper input.invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
    }
    
    .auth-page {
        padding: 32px 16px;
    }
}
