/* Plain, conservative CSS on purpose: white page, no framework, no external fonts. */
* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

/* Always light: ignore the device / browser dark mode */
html { color-scheme: only light; background: #ffffff; }

body {
    background: #ffffff;
    color: #111827;
    font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.wrap {
    max-width: 440px;
    margin: 0 auto;
    padding: 56px 20px 40px;
}

.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 34px 32px 30px;
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06), 0 10px 30px rgba(17, 24, 39, 0.07);
}

.icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    padding-top: 14px;
    text-align: center;
    border-radius: 50%;
    background: #eff6ff;
}
.icon svg { display: inline-block; vertical-align: top; }
.icon-ok { background: #ecfdf5; }

h1 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
    color: #111827;
}

.lead {
    margin: 0 0 22px;
    text-align: center;
    color: #6b7280;
    font-size: 14.5px;
}
.lead strong { color: #111827; }

/* step indicator */
.steps {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    text-align: center;
    font-size: 0;
}
.steps li {
    display: inline-block;
    margin: 0 4px;
    padding: 4px 12px 4px 6px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 12.5px;
    font-weight: 600;
}
.steps li span {
    display: inline-block;
    width: 19px;
    height: 19px;
    margin-right: 6px;
    border-radius: 50%;
    background: #d1d5db;
    color: #ffffff;
    text-align: center;
    line-height: 19px;
    font-size: 11px;
}
.steps li.on { background: #eff6ff; color: #1d4ed8; }
.steps li.on span { background: #2563eb; }
.steps li.done { background: #ecfdf5; color: #047857; }
.steps li.done span { background: #10b981; }

label {
    display: block;
    margin: 16px 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

input[type="text"],
input[type="password"] {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
    font-family: inherit;
}
input::placeholder { color: #9ca3af; }
input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

/* show / hide button (added by app.js) */
.pw { position: relative; }
.pw input { padding-right: 68px; }
.toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    height: 30px;
    margin-top: -15px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}
.toggle:hover { background: #eff6ff; }

/* captcha */
.captcha img {
    display: block;
    width: 240px;
    max-width: 100%;
    height: auto;
    margin-bottom: 6px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}
.refresh {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12.5px;
    color: #2563eb;
    text-decoration: none;
}
.refresh:hover { text-decoration: underline; }
#captcha { text-transform: uppercase; letter-spacing: 1px; }
#captcha::placeholder { text-transform: none; letter-spacing: 0; }
#captcha::-webkit-input-placeholder { text-transform: none; letter-spacing: 0; }

/* requirement checklist */
.rules {
    list-style: none;
    margin: 14px 0 20px;
    padding: 0;
    font-size: 13px;
    color: #6b7280;
}
.rules li { margin: 3px 0; padding-left: 20px; position: relative; }
.rules li:before { content: "\2022"; position: absolute; left: 5px; color: #9ca3af; }
.rules li.ok { color: #047857; }
.rules li.ok:before { content: "\2713"; left: 3px; color: #10b981; font-weight: 700; }

.btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 12px 16px;
    border: 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.rules + .btn { margin-top: 0; }
.btn-primary { background: #2563eb; color: #ffffff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-secondary { background: #ffffff; color: #1f2937; border: 1px solid #d1d5db; }
.btn-secondary:hover { background: #f9fafb; }

.signout { margin: 14px 0 0; text-align: center; }
.link-btn {
    border: 0;
    background: none;
    color: #6b7280;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    text-decoration: underline;
}
.link-btn:hover { color: #111827; }

.alert {
    margin: 0 0 18px;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    border: 1px solid transparent;
}
.alert-error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.alert-info  { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }

.note {
    margin: 0 0 22px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 13.5px;
}
.note strong { color: #111827; }

.foot { margin: 20px 0 0; text-align: center; color: #9ca3af; font-size: 12.5px; }

@media (max-width: 480px) {
    .wrap { padding-top: 24px; }
    .card { padding: 26px 20px 24px; }
}
