/* Public (pre-login) pages: Register, Set Password, Registration Pending.
   Same visual language as the Login page and the in-app theme. */
:root {
    --navy: #14284b; --navy-2: #1d3a6e; --saffron: #f28c28; --green: #1b8a4b;
    --ink: #1f2a3c; --muted: #6b7788; --line: #dde3ec; --bg: #f3f6fb;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Outfit', sans-serif; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); }

.tricolour { height: 5px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, var(--saffron) 0 33.33%, #fff 33.33% 66.66%, var(--green) 66.66% 100%); }
.brand-bar { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(20, 40, 75, .06); padding: 10px 16px; }
.brand-bar img { display: block; margin: 0 auto; width: 100%; max-width: 900px; height: auto; }

.stage { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; }

.auth-card {
    width: 100%; max-width: 460px; padding: clamp(24px, 4vw, 40px);
    background: #fff; border-radius: 20px; box-shadow: 0 18px 50px rgba(20, 40, 75, .14);
    border-top: 4px solid var(--navy-2);
    animation: rise .5s cubic-bezier(.16, 1, .3, 1);
}
.auth-card.wide { max-width: 700px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.auth-head { text-align: center; margin-bottom: 26px; }
.auth-icon {
    width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center;
    font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, var(--navy), var(--navy-2));
    box-shadow: 0 8px 20px rgba(20, 40, 75, .28);
}
.auth-icon.amber { background: linear-gradient(135deg, #e08a12, var(--saffron)); box-shadow: 0 8px 20px rgba(224, 138, 18, .3); }
.auth-head h1 { font-size: 1.6rem; font-weight: 600; color: var(--navy); }
.auth-head p { margin-top: 6px; font-size: .92rem; color: var(--muted); line-height: 1.55; }
.auth-head .name { color: var(--navy-2); font-weight: 600; }

.section-label {
    display: flex; align-items: center; gap: 9px; margin: 26px 0 14px; padding-bottom: 8px;
    font-size: .74rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
    color: var(--navy-2); border-bottom: 1.5px solid #e3e9f3;
}
.section-label.first { margin-top: 0; }
.section-label i { color: var(--saffron); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.full { grid-column: span 2; }
.fg { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stack .fg { margin-bottom: 18px; }
label, .lbl { font-size: .84rem; font-weight: 500; color: var(--ink); }

.iw { position: relative; }
.iw > i.lead { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .95rem; pointer-events: none; transition: color .2s; }
input, select {
    width: 100%; padding: 12px 14px 12px 42px; font-size: .95rem; color: var(--ink);
    background: #f9fbfe; border: 1.5px solid var(--line); border-radius: 11px; outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s; appearance: none; -webkit-appearance: none;
}
select {
    padding-right: 38px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236b7788' stroke-width='2'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
input::placeholder { color: #a3adbb; }
input:focus, select:focus { border-color: var(--navy-2); background-color: #fff; box-shadow: 0 0 0 4px rgba(29, 58, 110, .12); }
input:focus ~ i.lead, select:focus ~ i.lead { color: var(--navy-2); }
input[readonly], input:disabled { background: #eef2f8; color: var(--muted); cursor: default; }
input.input-validation-error, select.input-validation-error { border-color: #d93a3a; }
.iw.has-toggle input { padding-right: 46px; }

.toggle-pw {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer;
}
.toggle-pw:hover { color: var(--navy); background: rgba(20, 40, 75, .06); }

.field-validation-error, .field-err { color: #c22f2f; font-size: .78rem; }
.alert, .validation-summary-errors {
    background: #fdecec; border: 1px solid #f5c2c2; border-left: 4px solid #d93a3a; border-radius: 10px;
    padding: 12px 14px; margin-bottom: 20px; font-size: .86rem; color: #a32a2a;
}
.alert ul, .validation-summary-errors ul { list-style: none; }
.validation-summary-valid { display: none; }
.hint { font-size: .78rem; color: var(--muted); }

.btn {
    width: 100%; padding: 14px; margin-top: 22px; border: 0; border-radius: 11px;
    font-size: 1rem; font-weight: 600; color: #fff; cursor: pointer; text-decoration: none;
    background: linear-gradient(135deg, var(--navy), var(--navy-2)); box-shadow: 0 6px 18px rgba(20, 40, 75, .3);
    display: flex; justify-content: center; align-items: center; gap: 10px; transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 40, 75, .38); }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }
.btn.inline { display: inline-flex; width: auto; padding: 13px 28px; }

.auth-foot { text-align: center; margin-top: 22px; font-size: .88rem; color: var(--muted); }
.auth-foot a { color: var(--navy-2); font-weight: 600; text-decoration: none; margin-left: 4px; }
.auth-foot a:hover { text-decoration: underline; }
.site-foot { text-align: center; padding: 16px; font-size: .8rem; color: var(--muted); }

.notice { margin-top: 22px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; background: #fff8ee; border: 1px solid #f6dcb8; border-radius: 11px; font-size: .84rem; line-height: 1.55; color: #7a5a2b; }
.notice i { color: var(--saffron); margin-top: 3px; }
.steps { list-style: none; margin: 22px 0 6px; text-align: left; display: grid; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink); }
.steps .n { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 600; color: #fff; background: var(--navy-2); }
.steps .n.done { background: var(--green); }

@media (max-width: 560px) {
    .stage { padding: 18px 12px; }
    .grid { grid-template-columns: 1fr; }
    .full { grid-column: span 1; }
    input, select { font-size: 16px; min-height: 46px; } /* no iOS zoom on focus */
    .btn { min-height: 48px; }
    .auth-head h1 { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
