/* Login Specific Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-title {
    font-family: var(--font-serif);
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--text-primary);
    text-align: center;
}

.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 15px;
    text-align: center;
}

/* Google Button Customization */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    width: 100%;
    height: 56px;
    padding: 0 var(--space-6);
    background: #FFF;
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-pill);
    font-size: var(--text-md);
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.google-btn:hover {
    border-color: var(--text-primary);
    transform: translateY(-1px);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin: var(--space-8) 0;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-family: var(--font-serif);
    font-style: italic;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--accent-line);
}

/* Footer Links inside card */
.card-footer {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--accent-line);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* Ensure login button takes full width */
#login-form .btn {
    width: 100%;
}

/* Success State */
.success-state {
    text-align: center;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #F0FDF4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #16A34A;
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

.callback-spinner {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border-radius: 50%;
    border: 4px solid rgba(44, 40, 37, 0.12);
    border-top-color: var(--text-primary);
    animation: login-spin 0.9s linear infinite;
}

.email-sent-to {
    font-weight: 500;
    color: var(--text-primary);
}

.resend-link {
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    background: none;
    border: none;
    text-decoration: underline;
    margin-top: 16px;
}

.resend-link:hover {
    color: var(--text-primary);
}

.resend-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Hide states by default */
.login-state {
    display: none;
}

.login-state.active {
    display: block;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}
