main {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    margin-bottom: 1rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--fg);
}
.brand img {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
}
.brand-name {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}
.nav-actions { display: flex; gap: 0.5rem; align-items: center; }
.nav-actions .btn { padding: 0.6rem 1.1rem; font-size: 0.9rem; }

.auth-shell {
    max-width: 460px;
    margin: 2.5rem auto 0;
}
.auth-shell h1 {
    font-size: clamp(1.85rem, 5vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.4rem;
}
.auth-shell .greeting-sub {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.field { margin-bottom: 1.1rem; }
label.field-label {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
input[type="tel"], input[type="email"], input[type="password"] {
    width: 100%;
    padding: 0.95rem 1rem;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--fg);
    font-size: 1rem;
    transition: border-color .12s ease, background .12s ease;
}
input:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.02); }
.err { color: #ff8c8c; font-size: 0.85rem; margin-top: 0.4rem; }
.field-hint { color: var(--muted); font-size: 0.8rem; margin-top: 0.4rem; line-height: 1.45; }
.check-row.optional { font-size: 0.82rem; color: var(--muted); margin-top: 0.9rem; }

.opt-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.opt-pill {
    flex: 1;
    min-width: max-content;
    padding: 0.85rem 1rem;
    text-align: center;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: border-color .12s ease, background .12s ease;
}
.opt-pill input { position: absolute; opacity: 0; pointer-events: none; }
.opt-pill:hover { border-color: rgba(255,255,255,0.25); }
.opt-pill:has(input:checked) {
    background: rgba(248,184,3,0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.photo-uploader {
    position: relative;
    background: var(--bg-elev);
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: border-color .12s ease, background .12s ease;
}
.photo-uploader:hover { border-color: var(--accent); background: rgba(255,255,255,0.02); }
.photo-uploader input[type="file"] {
    position: absolute; inset: 0;
    opacity: 0; cursor: pointer;
    width: 100%; height: 100%;
}
.photo-uploader .icon {
    display: block;
    width: 32px; height: 32px;
    margin: 0 auto 0.5rem;
    color: var(--muted);
}
.photo-uploader .photo-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--fg);
    margin-bottom: 0.2rem;
}
.photo-uploader .photo-help {
    font-size: 0.78rem;
    color: var(--muted);
}
.photo-uploader.has-file {
    border-style: solid;
    border-color: var(--accent);
    background: rgba(248,184,3,0.06);
}
.photo-uploader.has-file .photo-label { color: var(--accent); }

.disclaimer {
    margin-top: 0.5rem;
    padding: 1rem 1.1rem;
    background: rgba(248,184,3,0.05);
    border: 1px solid rgba(248,184,3,0.22);
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--muted);
}
.disclaimer strong { color: var(--accent); font-weight: 800; display: block; margin-bottom: 0.25rem; }

.accept-field { margin-top: 1.25rem; margin-bottom: 1rem; }
.check-row {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--fg);
}
.check-row input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: 22px; height: 22px;
    margin-top: 1px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    background: var(--bg-elev);
    cursor: pointer;
    position: relative;
    transition: border-color .12s ease, background .12s ease;
}
.check-row input[type="checkbox"]:hover { border-color: rgba(255,255,255,0.3); }
.check-row input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}
.check-row input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px; top: 2px;
    width: 6px; height: 11px;
    border: solid #1a1306;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}
.check-row a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.check-row a:hover { color: var(--accent); }

.submit { width: 100%; padding: 1rem; margin-top: 0.75rem; font-weight: 700; font-size: 1rem; }

.login-card {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(248,184,3,0.06), transparent);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-align: center;
}
.login-card .login-q {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 0.9rem;
}
.login-card .btn {
    padding: 0.85rem 1.75rem;
    font-weight: 700;
    font-size: 0.95rem;
}
