/*
 * The pages you meet before the application: signing in, and choosing a
 * password. They share the map's palette and nothing else - no globe, no
 * panels, and no navigation, because on both of these there is nowhere else to
 * go yet.
 */

.account-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background: var(--bg);
}

.account-card {
    width: 100%;
    max-width: 380px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 28px 26px 22px;
}

.account-card .brand { margin-bottom: 20px; }

.account-card h1 {
    font-size: 19px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 16px;
}

.account-card .field { margin-bottom: 14px; }

.account-card input[type="email"],
.account-card input[type="password"] {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    color: var(--ink);
    padding: 8px 10px;
    font: inherit;
    font-size: 14px;
}
.account-card input:focus {
    outline: none;
    border-color: var(--accent);
}

.account-card .primary-button { width: 100%; margin-top: 4px; }
.account-card .ghost-button { width: 100%; margin-top: 12px; }

.account-who { font-size: 12.5px; color: var(--ink-dim); margin: 0 0 16px; }

/*
 * Status carries three states and says which by colour and by wording both,
 * because colour alone is not a message.
 */
.account-status {
    border-radius: 6px;
    padding: 9px 11px;
    margin: 4px 0 14px;
    font-size: 12.5px;
    line-height: 1.45;
    border: 1px solid transparent;
}
.account-status[hidden] { display: none; }
.account-status p { margin: 0; }
.account-status ul { margin: 6px 0 0; padding-left: 18px; }
.account-status li { margin-bottom: 3px; }

.account-status[data-state="error"] {
    background: rgba(255, 69, 58, 0.10);
    border-color: rgba(255, 69, 58, 0.45);
    color: #ff9d96;
}
.account-status[data-state="busy"] {
    background: rgba(120, 160, 210, 0.10);
    border-color: rgba(120, 160, 210, 0.35);
    color: var(--ink-dim);
}
.account-status[data-state="ok"] {
    background: rgba(52, 199, 89, 0.10);
    border-color: rgba(52, 199, 89, 0.40);
    color: #7ee2a0;
}

/* A password change somebody was stopped for, rather than one they chose. */
.account-required {
    border-left: 3px solid var(--accent);
    padding-left: 10px;
}
