/* ui/auth-modal.css */

.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal-backdrop);
    padding: var(--spacing-5);
}

.auth-modal {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--spacing-8);
    max-width: 400px;
    width: 100%;
    position: relative;
    color: var(--color-text-primary);
    box-shadow: var(--shadow-lg);
}

.auth-modal-close {
    position: absolute;
    top: var(--spacing-4);
    right: var(--spacing-4);
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: var(--transition-fast);
}

.auth-modal-close:hover {
    color: var(--color-text-primary);
}

.auth-modal h2 {
    margin: 0 0 var(--spacing-2);
    font-size: var(--font-size-xl);
    font-family: var(--font-serif);
    font-weight: var(--font-weight-bold);
    text-align: center;
    color: var(--color-primary);
}

.auth-modal-subtitle {
    margin: 0 0 var(--spacing-6);
    text-align: center;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    font-family: var(--font-sans);
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-4);
}

.auth-btn {
    padding: var(--spacing-3) var(--spacing-6);
    border-radius: var(--radius-md);
    border: var(--border-width-base) solid transparent;
    font-size: var(--font-size-md);
    font-family: var(--font-sans);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: var(--transition-base);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-base);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn-facebook {
    background: #1877f2;
    color: white;
}

.auth-btn-google {
    background: var(--color-surface);
    color: var(--color-text-primary);
    border-color: var(--color-border);
}

.auth-btn-apple {
    background: var(--color-primary);
    color: white;
}

.auth-btn-email {
    background: var(--color-accent);
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
}

.auth-btn-email:hover {
    background: #c19d2f;
}

.auth-email-details {
    margin-top: var(--spacing-2);
}

.auth-email-details summary {
    text-align: center;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: var(--spacing-2);
    user-select: none;
    font-size: var(--font-size-sm);
    font-family: var(--font-sans);
    transition: var(--transition-fast);
}

.auth-email-details summary:hover {
    color: var(--color-text-primary);
}

.auth-email-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    margin-top: var(--spacing-3);
}

.auth-email-form input {
    padding: var(--spacing-3);
    border-radius: var(--radius-md);
    border: var(--border-width-thin) solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-primary);
    font-size: var(--font-size-md);
    font-family: var(--font-sans);
    transition: var(--transition-fast);
}

.auth-email-form input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.auth-btn-link {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: var(--spacing-2);
    font-size: var(--font-size-sm);
    font-family: var(--font-sans);
    text-align: center;
    display: block;
    width: 100%;
    transition: var(--transition-fast);
}

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

.auth-toggle-link {
    background: transparent;
    border: none;
    color: var(--color-accent);
    cursor: pointer;
    padding: var(--spacing-3) var(--spacing-2);
    font-size: var(--font-size-sm);
    font-family: var(--font-sans);
    text-align: center;
    display: block;
    width: 100%;
    transition: var(--transition-fast);
    font-weight: var(--font-weight-medium);
    margin: var(--spacing-2) 0;
}

.auth-toggle-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.auth-terms {
    margin: var(--spacing-4) 0 0;
    text-align: center;
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    font-family: var(--font-sans);
    line-height: var(--line-height-relaxed);
}
