/* Auth page styles — cloned from Sorcha.UI Blazor components */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --btn-primary: #1b6ec2;
    --btn-primary-hover: #1861ac;
    --bg-color: #f8f9fa;
    --border-color: #dee2e6;
    --text-muted: #6c757d;
}

.auth-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    padding: 1rem;
}

.auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.auth-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.auth-header p {
    margin: 0.5rem 0 0;
    opacity: 0.9;
    font-size: 1rem;
}

.auth-card-body {
    padding: 2rem;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.auth-footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--btn-primary);
}

/* Divider */
.divider-row {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.divider-line {
    flex: 1;
    border: none;
    border-top: 1px solid var(--border-color);
}

.divider-text {
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Social buttons */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.social-btn:hover {
    background: var(--bg-color);
    border-color: #adb5bd;
}

/* Passkey button */
.passkey-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    background: #fff;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.passkey-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Processing spinner */
.auth-processing {
    text-align: center;
    padding: 3rem 2rem;
}

.auth-processing .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--primary-color);
}

/* Error/success states */
.auth-result {
    text-align: center;
    padding: 2rem;
}

.auth-result .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.auth-result.success .icon { color: #26b050; }
.auth-result.error .icon { color: #dc3545; }

/* Method tabs */
.method-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.method-tab {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: none;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}

.method-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
