*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
}

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

.auth-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.1);
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
}

.auth-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 1.5rem; }

.auth-hint { color: #666; margin-bottom: 1.5rem; font-size: .9rem; }

.auth-field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }

.auth-field label { font-size: .875rem; font-weight: 500; }

.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="text"] {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: .5rem .75rem;
    font-size: 1rem;
    width: 100%;
    outline: none;
    transition: border-color .15s;
}

.auth-field input:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,.15); }

.auth-checkbox { flex-direction: row; align-items: center; gap: .5rem; }

.auth-button {
    display: block;
    width: 100%;
    padding: .625rem 1rem;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 1rem;
    transition: background .15s;
}

.auth-button:hover { background: #4338ca; }
.auth-button-secondary { background: #6b7280; margin-top: .5rem; }
.auth-button-secondary:hover { background: #4b5563; }

.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #b91c1c;
    padding: .75rem;
    margin-bottom: 1rem;
    font-size: .9rem;
}

.auth-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    color: #047857;
    padding: .75rem;
    margin-bottom: 1rem;
    font-size: .9rem;
}

.auth-validation { color: #b91c1c; font-size: .8rem; }

.auth-scope-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
    font-size: .9rem;
    color: #374151;
}

.auth-consent-buttons { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }

.auth-error-description { color: #374151; margin-bottom: .5rem; }
.auth-error-code { font-size: .8rem; color: #9ca3af; font-family: monospace; }

.auth-footer { margin-top: 1.25rem; text-align: center; font-size: .875rem; }
.auth-footer a { color: #4f46e5; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

.auth-mono { font-family: ui-monospace, monospace; font-size: .75rem; word-break: break-all; margin-bottom: .75rem; color: #374151; }

.auth-codes { list-style: none; margin: 1rem 0; padding: 0; }
.auth-codes li { font-family: ui-monospace, monospace; padding: .25rem 0; }
