/*
 * Arbo IP-verification page styles.
 *
 * Visual parity with the React AuthScreen on the main app:
 *   - 400px white card on a soft grey backdrop
 *   - IBM Plex Sans body, DM Mono for code / captcha inputs
 *   - #00c8dc turquoise accent on focus + primary button
 *   - 4px default radius
 *   - Centered logo at 258px width above the card
 */

:root {
    --color-bg: #f5f6f7;
    --color-card-bg: #ffffff;
    --color-text: #1c1c1c;
    --color-muted: #6c757d;
    --color-border: #dfdfdf;
    --color-border-soft: #e7e9eb;
    --color-border-active: #00c8dc;
    --color-accent: #00c8dc;
    --color-accent-deep: #265d62;
    --color-danger-bg: #fee;
    --color-danger-border: #fcc;
    --color-danger-text: #721c24;
    --radius-default: 4px;
    --radius-lg: 8px;
    --font-ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "DM Mono", "JetBrains Mono", Consolas, monospace;
    --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-ui);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    padding: 48px 16px 64px;
}

.logo {
    width: 258px;
    max-width: 80vw;
    height: auto;
    margin-top: 4vh;
    user-select: none;
}

.formCard {
    width: 460px;
    max-width: 92vw;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-default);
    padding: 28px 28px 24px;
    box-shadow: var(--shadow-card);
}

.cardTitle {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.lede {
    margin: 0 0 18px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #3f3f3f;
}

.ipBadge {
    display: inline-block;
    padding: 1px 6px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    background: #f1f3f4;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-default);
    color: var(--color-accent-deep);
}

.steps {
    list-style: none;
    margin: 0 0 20px;
    padding: 14px 14px 14px 12px;
    background: #fafbfc;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-default);
    font-size: 12.5px;
    color: #4a4a4a;
}

.steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    padding: 3px 0;
}

.stepDot {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}


.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 4px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.label {
    font-size: 12.5px;
    font-weight: 500;
    color: #2b2b2b;
    letter-spacing: 0.01em;
}

.input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-default);
    font-family: var(--font-ui);
    font-size: 14px;
    color: var(--color-text);
    background: #fff;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.input.mono {
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.input::placeholder {
    color: #a0a0a0;
}

.input:hover {
    border-color: #c4c4c4;
}

.input:focus {
    outline: none;
    border-color: var(--color-border-active);
    box-shadow: 0 0 0 3px rgba(0, 200, 220, 0.18);
}

.input:invalid:not(:placeholder-shown):not(:focus) {
    border-color: #f3a6a6;
}

.captchaRow {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captchaImg {
    display: block;
    height: auto;
    width: 100%;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-default);
    background: #fff;
    padding: 4px;
}

.captchaHint {
    font-size: 12px;
    color: var(--color-muted);
    margin-top: 2px;
}

.btnPrimary {
    margin-top: 4px;
    width: 100%;
    padding: 11px 16px;
    border: 1px solid var(--color-accent);
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: var(--radius-default);
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease, transform 60ms ease;
}

.btnPrimary:hover {
    background: #00b4c6;
    border-color: #00b4c6;
}

.btnPrimary:active {
    transform: translateY(1px);
}

.btnPrimary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 200, 220, 0.35);
}

.notice {
    margin: 18px 0 0;
    font-size: 11.5px;
    color: var(--color-muted);
    line-height: 1.5;
    text-align: center;
}

.cardFooter {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--color-muted);
    margin-top: 18px;
    text-align: center;
    border-top: 1px solid #e7e9eb;
    padding-top: 14px;
}

/* Compact responsive tweaks */
@media (max-width: 480px) {
    .container { padding: 24px 12px 40px; gap: 20px; }
    .logo { width: 200px; margin-top: 2vh; }
    .formCard { padding: 22px 18px 20px; }
    .cardTitle { font-size: 17px; }
}
