/* MailTester — Auth pages & account styles (extends style.css) */

/* ---- Auth card ---- */

.auth-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    max-width: 480px;
    margin: 0 auto;
}

.auth-card h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.auth-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ---- Form ---- */

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

.auth-form label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 12px;
}

.auth-input {
    padding: 12px 14px;
    font-size: .95rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: border-color .2s;
    background: var(--bg);
    color: var(--text);
    margin-bottom: 4px;
}

.auth-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

.auth-btn {
    margin-top: 20px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--primary);
    color: #FFF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s;
    text-align: center;
}

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

/* ---- Messages ---- */

.auth-error {
    background: #FEE2E2;
    color: var(--danger);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: .9rem;
}

.auth-success {
    background: #D1FAE5;
    color: #065F46;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: .9rem;
}

/* ---- OAuth ---- */

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

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

.auth-separator span {
    padding: 0 12px;
}

.oauth-buttons {
    display: flex;
    gap: 12px;
}

.oauth-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    transition: background .2s, border-color .2s;
    cursor: pointer;
}

.oauth-btn:hover {
    background: var(--bg);
    border-color: var(--primary);
}

.oauth-btn.google:hover { border-color: #4285F4; }
.oauth-btn.apple:hover { border-color: #000; }

/* ---- Auth footer ---- */

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

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

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

/* ---- Detail rows (account page) ---- */

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: .9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-value {
    font-size: .9rem;
    color: var(--text);
    font-weight: 600;
}

/* ---- Account page wider cards ---- */
.container .auth-card {
    max-width: 680px;
}

@media (max-width: 600px) {
    .auth-card { padding: 24px 20px; }
    .oauth-buttons { flex-direction: column; }
    .detail-row { flex-direction: column; align-items: flex-start; gap: 4px; }
}
