/* Brand + sign-in screens. Separate from style.css so server-side edits to
   style.css are never overwritten. Uses the :root tokens defined there. */

/* ---- logo placements ---- */
.logo-img { width: 34px; height: 34px; display: block; }
.logo-chip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%; background: #fff; flex: none;
}
.logo-chip img { width: 26px; height: 26px; display: block; }

/* ---- sign-in layout ---- */
.auth-body { background: #fff; color: var(--ink); min-height: 100vh; }
.auth-split { display: grid; grid-template-columns: minmax(400px, 44%) 1fr; min-height: 100vh; }

.auth-brand {
    position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 36px;
    padding: 40px 52px; color: #dbe5eb; background-color: #101c25;
    /* faint measurement grid: reads as graph paper behind an audit report */
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 36px 36px;
}
.brand-lockup { display: inline-flex; align-items: center; gap: 14px; color: #fff; }
.brand-lockup:hover { text-decoration: none; }
.brand-seal {
    display: inline-flex; align-items: center; justify-content: center;
    width: 54px; height: 54px; border-radius: 50%; background: #fff;
    box-shadow: 0 0 0 5px rgba(255,255,255,0.08);
}
.brand-seal img { width: 40px; height: 40px; display: block; }
.brand-name { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }

.brand-body { max-width: 440px; }
.brand-body h2 { font-size: 34px; line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; color: #fff; margin-bottom: 14px; }
.brand-body > p { font-size: 15.5px; line-height: 1.55; color: #a9bac5; max-width: 38ch; }

.sample-report {
    margin-top: 36px; padding: 20px 22px 8px; border-radius: 14px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    max-width: 400px;
}
.sample-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 14px; }
.sample-url { color: #fff; font-weight: 600; }
.sample-tag { color: #8da2af; }
.sample-score { position: relative; width: 92px; height: 92px; margin-bottom: 8px; }
.score-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.score-arc { animation: draw-score 1.1s cubic-bezier(.2,.7,.2,1) 0.25s both; }
@keyframes draw-score { from { stroke-dasharray: 0 327; } }

.sample-checks { list-style: none; }
.sample-checks li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13.5px; }
.chk { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #101c25; }
.chk-ok { background: #3ddc97; }
.chk-warn { background: #ffc658; }
.chk-bad { background: #ff7a6b; }
.chk-name { color: #fff; font-weight: 600; }
.chk-state { color: #9fb2be; }

.brand-foot { font-size: 12.5px; color: #7b909d; }

/* ---- form side ---- */
.auth-panel { display: flex; flex-direction: column; min-height: 100vh; background: #fff; }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 28px; }
.auth-form { width: 100%; max-width: 380px; }
.auth-form h1 { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; text-align: left; margin-bottom: 8px; }
.auth-form .auth-subtitle { text-align: left; color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; margin-bottom: 28px; }

.auth-form .field-group { margin-bottom: 18px; }
.auth-form .field-group label { font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.auth-form .field-group input {
    width: 100%; height: 46px; padding: 0 14px; border: 1px solid #cdd7de; border-radius: 10px;
    background: #fff; font-family: inherit; font-size: 15px; color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
.auth-form .field-group input::placeholder { color: #98a6b0; }
.auth-form .field-group input:hover { border-color: #aebcc6; }
.auth-form .field-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(41, 82, 227, 0.16); }
.field-label-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.field-label-row label { margin-bottom: 0 !important; }
.field-label-row a { font-size: 13px; font-weight: 600; }
.field-hint { margin-top: 6px; font-size: 12.5px; color: var(--ink-soft); }

.field-password { position: relative; }
.field-password input { padding-right: 64px !important; }
.pw-toggle {
    position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
    height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent;
    color: var(--ink-soft); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.pw-toggle:hover { color: var(--ink); background: #f1f4f6; }
.pw-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

.auth-form .btn { width: 100%; height: 48px; margin-top: 6px; padding: 0 20px; border-radius: 10px; font-size: 15px; }
.auth-form .btn:focus-visible { outline: 3px solid rgba(41, 82, 227, 0.4); outline-offset: 2px; }
.auth-form .auth-error, .auth-form .auth-success { border-radius: 10px; }

.auth-form .auth-links { text-align: left; align-items: flex-start; margin-top: 22px; gap: 10px; }
.auth-form .auth-links a { font-weight: 600; }
.auth-foot { display: flex; justify-content: space-between; padding: 22px 36px; font-size: 12.5px; color: #8896a1; }
.auth-foot a { color: #5c6b77; font-weight: 600; }

/* ---- smaller screens ---- */
@media (max-width: 960px) {
    .auth-split { grid-template-columns: 1fr; min-height: 0; }
    .auth-brand { padding: 22px 24px; gap: 0; }
    .brand-body, .brand-foot { display: none; }
    .brand-seal { width: 44px; height: 44px; }
    .brand-seal img { width: 32px; height: 32px; }
    .brand-name { font-size: 19px; }
    .auth-panel { min-height: 0; }
    .auth-main { align-items: flex-start; padding: 36px 24px 24px; }
    .auth-foot { padding: 18px 24px 26px; }
}
@media (prefers-reduced-motion: reduce) { .score-arc { animation: none; } }

/* Keep the public header tidy on narrow phones */
@media (max-width: 480px) {
    header .header-flex { gap: 10px; }
    header .logo { white-space: nowrap; font-size: 16px; gap: 7px; }
    header nav { display: flex; align-items: center; gap: 12px; }
    header nav a { font-size: 14px; margin-left: 0; }
}
