/* Pulse — Auth styles: login, register, pending approval, profile, TOTP */

/* Auth layout */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-card h1 {
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.auth-footer a {
    color: var(--accent);
}

/* Pending approval */
.pending-icon {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.info-box {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.info-box p {
    margin: 0;
}

.info-box .email {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

/* Profile page */
.profile-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
}

.info-list {
    display: grid;
    gap: 0.5rem;
}

.info-list dt {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.info-list dd {
    margin: 0 0 1rem 0;
}

/* Token display */
.token-display {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.token-display code {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 4px;
    font-family: monospace;
    word-break: break-all;
    border: 1px solid var(--border);
}

.token-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* TOTP status */
.totp-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.status-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.totp-enabled .status-icon {
    background: rgba(97, 202, 107, 0.2);
    color: var(--success);
}

.totp-disabled .status-icon {
    background: rgba(220, 38, 38, 0.2);
    color: var(--warning);
}

.disable-totp {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.disable-totp summary {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.disable-form {
    margin-top: 1rem;
}

.warning-text {
    color: var(--warning);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Alert - success (profile) */
.alert-success {
    background: rgba(97, 202, 107, 0.1);
    color: var(--success);
    border: 1px solid rgba(97, 202, 107, 0.2);
}

/* TOTP setup */
.totp-setup-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0;
}

.totp-setup-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid var(--border);
}

.totp-setup-card h1 {
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    display: flex;
    gap: 1rem;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.qr-code {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.qr-code img {
    max-width: 200px;
}

.manual-entry {
    font-size: 0.875rem;
}

.manual-entry summary {
    cursor: pointer;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.secret-key {
    display: block;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 4px;
    font-family: monospace;
    word-break: break-all;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* Recovery codes */
.recovery-codes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.recovery-codes code {
    padding: 0.5rem;
    background: var(--bg-primary);
    border-radius: 4px;
    font-family: monospace;
    text-align: center;
    font-size: 0.875rem;
}

/* TOTP verify form */
.verify-form {
    max-width: 200px;
}

.verify-form .form-group input {
    font-size: 1.25rem;
    text-align: center;
    letter-spacing: 0.5em;
    font-family: monospace;
}
