/*
 * Pipali Styles - Login Page
 * Includes: login card, buttons, error states
 */

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: var(--color-bg);
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

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

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.login-logo svg {
    color: var(--color-accent);
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--color-text);
}

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

.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-error);
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid var(--color-border);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-btn.google {
    background: var(--color-bg-elevated);
    color: var(--color-text);
}

.login-btn.google:hover:not(:disabled) {
    background: var(--color-bg-muted);
    border-color: var(--color-text-muted);
}

.login-btn.email {
    background: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
}

.login-btn.email:hover:not(:disabled) {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}

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

.login-footer {
    margin-top: 2rem;
    text-align: center;
}

.login-footer p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Waiting for external browser auth */
.login-waiting {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
    color: var(--color-text-secondary);
}

.login-waiting svg {
    color: var(--color-accent);
}

.login-waiting p {
    margin: 0;
    font-size: 0.9375rem;
}

.login-btn.secondary {
    background: var(--color-bg-muted);
    color: var(--color-text-secondary);
    border-color: var(--color-border);
}

.login-btn.secondary:hover:not(:disabled) {
    background: var(--color-bg-elevated);
    color: var(--color-text);
}
