/* Shared auth page styles */

.auth-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 48px 22px;
    min-height: calc(100vh - 140px);
}

.auth-card {
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
}

.auth-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.auth-section-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.auth-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 17px;
    font-family: inherit;
    background: var(--gray-50);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

.auth-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.auth-btn-primary {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    background: var(--primary-color);
    color: #fff;
    transition: all var(--transition-fast);
}

.auth-btn-primary:hover {
    background: var(--primary-hover);
}

.auth-btn-secondary {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    background: var(--gray-900);
    color: #fff;
    transition: all var(--transition-fast);
}

.auth-btn-secondary:hover {
    background: var(--gray-700, #374151);
}

.auth-btn-outline {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    background: var(--surface);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.auth-btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-400, #9ca3af);
}

.auth-form-group {
    margin-bottom: 16px;
}

.auth-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--text-secondary);
    font-size: 13px;
}

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

.auth-toggle {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-toggle a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-toggle a:hover {
    text-decoration: underline;
}

.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.auth-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.auth-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-icon-success {
    background: #f0fdf4;
}

.auth-icon-info {
    background: #e0f7fa;
}

.auth-icon-warning {
    background: #fffbeb;
}

.auth-message {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.auth-email {
    font-weight: 600;
    color: var(--text-primary);
}

.auth-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 24px;
}

.auth-back {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-back a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-back a:hover {
    text-decoration: underline;
}

.password-section {
    margin-top: 0;
}

.password-toggle-wrap {
    text-align: center;
    margin-top: 20px;
}

.password-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
}

.password-toggle:hover {
    text-decoration: underline;
}

/* Centered card variant for status/confirmation pages */
.auth-card-centered {
    text-align: center;
}

.auth-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
