/* Hello Solar — shared styles for login.html, forgot-password.html, set-password.html */
:root {
    --orange: #ff8a00;
    --orange-dark: #d96500;
    --orange-soft: #fff6eb;
    --navy: #101a2e;
    --ink: #1c1917;
    --muted: #64748b;
    --line: #e2e8f0;
    --field-line: #cbd5e1;
    --bg: #fffdf9;
    --white: #fff;
    --danger: #b91c1c;
    --danger-bg: #fef2f2;
    --danger-line: #fecaca;
    --success: #16a34a;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 179, 0, 0.10) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(255, 138, 0, 0.08) 0%, transparent 45%),
        linear-gradient(135deg, #ffffff 0%, var(--bg) 50%, #fff9ef 100%);
    -webkit-font-smoothing: antialiased;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 36px 34px 30px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(16, 26, 46, 0.08);
}

.auth-logo { display: flex; width: fit-content; margin-bottom: 24px; }
.auth-logo img { height: 38px; width: auto; display: block; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 138, 0, 0.08);
    color: var(--orange-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    margin: 12px 0 6px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--navy);
}

h1 span { color: var(--orange); }

.lede { margin: 0 0 24px; font-size: 14px; line-height: 1.55; color: var(--muted); }

form { display: flex; flex-direction: column; gap: 18px; }

.field-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }

label { font-size: 14px; font-weight: 700; color: var(--navy); }

.link-btn {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--orange-dark);
    cursor: pointer;
}

.link-btn:hover { text-decoration: underline; }

.input-wrap { position: relative; }

.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
}

input {
    width: 100%;
    height: 48px;
    padding: 0 46px 0 42px;
    border: 1px solid var(--field-line);
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    transition: border-color .15s, box-shadow .15s;
}

input::placeholder { color: #8793a3; }
input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.14); }
input[aria-invalid="true"] { border-color: var(--danger-line); }

.password-toggle {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.password-toggle:hover { color: var(--orange); background: var(--orange-soft); }

svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle svg { width: 20px; height: 20px; }

.notice {
    display: none;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.notice.visible { display: flex; }
.notice svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.notice-error { color: var(--danger); background: var(--danger-bg); border: 1px solid var(--danger-line); }
.notice-info { color: #7c3d00; background: var(--orange-soft); border: 1px solid #ffe2bf; }

.submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(110deg, #ff9c00, #ff7a00);
    box-shadow: 0 8px 20px rgba(255, 132, 0, 0.16);
    color: #fff;
    font: inherit;
    font-size: 15.5px;
    font-weight: 800;
    cursor: pointer;
    transition: filter .15s, transform .15s;
}

.submit svg { width: 18px; height: 18px; stroke-width: 2; }
.submit:hover:not(:disabled) { filter: brightness(0.96); }
.submit:active:not(:disabled) { transform: translateY(1px); }
.submit:disabled { cursor: progress; opacity: .9; }
.submit.success { background: var(--success); box-shadow: none; }

button:focus-visible, a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }




.back-home { display: block; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--muted); text-decoration: none; }
.back-home:hover { color: var(--orange-dark); }

@media (max-width: 480px) {
    .auth-card { padding: 28px 22px 24px; border-radius: 20px; }
    h1 { font-size: 27px; }
}

/* ---- Password pages (forgot-password.html, set-password.html) ---- */
.notice-success { color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; }

.rules { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.rules li { display: flex; align-items: center; gap: 8px; }
.rules li::before { content: ""; width: 14px; height: 14px; border-radius: 999px; border: 1.5px solid #cbd5e1; flex-shrink: 0; transition: background .15s, border-color .15s; }
.rules li.met { color: #166534; }
.rules li.met::before { background: var(--success); border-color: var(--success); box-shadow: inset 0 0 0 3px #fff; }

.state { text-align: center; padding: 8px 0 4px; }
.state-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 999px; display: grid; place-items: center; }
.state-icon svg { width: 26px; height: 26px; stroke-width: 2.2; }
.state-icon.ok { background: #f0fdf4; color: var(--success); }
.state-icon.warn { background: var(--orange-soft); color: var(--orange-dark); }
.state h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: var(--navy); }
.state p { margin: 0 0 20px; font-size: 14px; line-height: 1.55; color: var(--muted); }

a.submit, a.link-btn { text-decoration: none; }
a.link-btn:hover { text-decoration: underline; }
.hidden { display: none !important; }
