/* ----------------------------------------
   Base / Layout
----------------------------------------- */

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;
    background: #f3f4f6;
    color: #111827;
}

.login-container {
    max-width: 420px;
    margin: 60px auto;
    padding: 25px 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

h1 {
    font-size: 24px;
    margin: 0 0 20px;
    font-weight: 600;
    text-align: center;
}

/* ----------------------------------------
   Tabs
----------------------------------------- */

.tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.tab-button {
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    background: #e5e7eb;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
}

.tab-button:hover {
    background: #d1d5db;
}

.tab-button.active {
    background: #2563eb;
    color: #ffffff;
}

/* ----------------------------------------
   Messages
----------------------------------------- */

.message {
    margin-bottom: 18px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.message.error {
    display: block;
    background: #fee2e2;
    color: #b91c1c;
}

.message.success {
    display: block;
    background: #dcfce7;
    color: #166534;
}

.message.info {
    display: block;
    background: #dbeafe;
    color: #1e3a8a;
}

/* ----------------------------------------
   Forms
----------------------------------------- */

.form .field {
    margin-bottom: 15px;
}

.form label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 500;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="password"] {
    width: 100%;
    padding: 10px 11px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    box-sizing: border-box;
}

.form input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.actions {
    text-align: center;
    margin-top: 12px;
}

.actions button {
    padding: 10px 16px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.actions button:hover {
    background: #1d4ed8;
}

/* ----------------------------------------
   Hints
----------------------------------------- */

.hint {
    margin-top: 10px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

/* ----------------------------------------
   Manage Passkeys
----------------------------------------- */

#manage-passkeys {
    margin-top: 10px;
}

.passkey-list {
    margin-top: 12px;
}

.passkey-item {
    background: #f9fafb;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    margin-bottom: 12px;
}

.passkey-label {
    font-size: 15px;
    font-weight: 600;
}

.passkey-meta {
    font-size: 13px;
    color: #6b7280;
    margin: 6px 0;
}

.btn-remove-passkey {
    padding: 6px 12px;
    font-size: 13px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: #ef4444;
    color: white;
    transition: background 0.2s;
}

.btn-remove-passkey:hover {
    background: #dc2626;
}

/* ----------------------------------------
   No-JS Warning
----------------------------------------- */

.no-js-warning {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    text-align: center;
    font-weight: 600;
}

/* ----------------------------------------
   Loading Placeholder
----------------------------------------- */

.loading {
    text-align: center;
    padding: 20px;
    color: #6b7280;
}
