/* ============================================================
   Summerhill Technologies — LIGHT login (matches the admin dashboard)
   Styling only. Scoped under .sht-login. No new dependencies.
   Light near-white base, white auth card with a light-grey border,
   darkened-cyan accent (#0e7490) — same palette as the dashboard.
   ============================================================ */

.sht-login {
    --cyan: #0e7490;            /* dashboard accent */
    --cyan-bright: #0b6478;     /* accent text/hover on light */
    --cyan-hover: #0a5566;
    --on-accent: #ffffff;
    --ink: #eef1f5;             /* light app base */
    --panel: #ffffff;           /* white card */
    --hair: #d6dce3;            /* light-grey border */
    --hair-strong: #c2cbd5;
    --text: #16191d;            /* primary text */
    --muted: #474f5a;           /* secondary mid-grey */

    position: fixed;
    inset: 0;
    display: flex;
    overflow: auto;
    z-index: 1;
    font-family: 'Inter', 'Open Sans', system-ui, sans-serif;
    color: var(--text);
    background: var(--ink);
    -webkit-font-smoothing: antialiased;
}

/* dark aurora + grid removed for the light theme */
.sht-login .sht-aurora { display: none; }
.sht-login .sht-grid { display: none; }

/* ---------- Hero (left) ---------- */
.sht-hero {
    flex: 1 1 56%;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;      /* centre the brand block horizontally in the panel */
    text-align: center;
    padding: 6vh 5vw;
    gap: 26px;
}
.sht-mark {
    width: clamp(90px, 15vw, 120px);
    height: auto;
    filter: none;
}
.sht-mark path {
    stroke: #16191d;
    stroke-width: 7;
    fill: transparent;
    stroke-dasharray: 2600;
    stroke-dashoffset: 2600;
    animation:
        sht-draw 1.7s cubic-bezier(.6,.05,.2,1) forwards .25s,
        sht-fill 0.9s ease forwards 1.55s;
}
@keyframes sht-draw { to { stroke-dashoffset: 0; } }
@keyframes sht-fill { to { fill: #16191d; } }

.sht-brand {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: 0.12em;
    color: var(--text);
    margin: 0;
    animation: sht-up .8s cubic-bezier(.2,.7,.2,1) both .9s;
}
.sht-brand span {
    display: block;
    font-size: 0.34em;
    font-weight: 500;
    letter-spacing: 0.5em;
    color: var(--cyan-bright);
    margin-top: 12px;
    padding-left: 4px;
}
.sht-tag {
    max-width: 34ch;
    margin: 0 auto;
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    line-height: 1.6;
    color: var(--muted);
    animation: sht-up .8s cubic-bezier(.2,.7,.2,1) both 1.05s;
}
.sht-tag b { color: var(--text); font-weight: 600; }

.sht-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    animation: sht-up .8s cubic-bezier(.2,.7,.2,1) both 1.2s;
}
.sht-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    border: 1px solid var(--hair);
    border-radius: 999px;
    background: #ffffff;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    color: var(--muted);
    transition: transform .2s, border-color .2s, color .2s, box-shadow .3s;
}
.sht-chip svg { width: 16px; height: 16px; stroke: var(--cyan); flex: none; }
.sht-chip:hover {
    transform: translateY(-3px);
    border-color: var(--cyan);
    color: var(--text);
    box-shadow: 0 8px 20px -10px rgba(14, 116, 144, 0.4);
}

/* ---------- Auth card (right) ---------- */
.sht-auth {
    flex: 1 1 44%;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vh 4vw;
}
.sht-card {
    width: min(420px, 100%);
    padding: 40px 36px;
    border-radius: 22px;
    background: var(--panel);
    border: 1px solid var(--hair);
    box-shadow: 0 24px 60px -30px rgba(16, 24, 40, 0.25), 0 2px 6px rgba(16, 24, 40, 0.06);
    animation: sht-rise .85s cubic-bezier(.2,.7,.2,1) both .35s;
}
@keyframes sht-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes sht-up   { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.sht-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.55rem;
    letter-spacing: 0.01em;
    color: var(--text);
    margin: 0 0 4px;
}
.sht-card .sht-sub {
    font-size: 0.88rem;
    color: var(--muted);
    margin: 0 0 26px;
}

/* Fields — override bootstrap .form-control inside the card */
.sht-field { position: relative; margin-bottom: 15px; }
.sht-field .sht-ic {
    position: absolute;
    left: 15px; top: 50%;
    width: 18px; height: 18px;
    transform: translateY(-50%);
    stroke: var(--muted);
    pointer-events: none;
    transition: stroke .2s;
}
.sht-login .form-control {
    height: 52px !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid var(--hair-strong) !important;
    border-radius: 12px !important;
    color: var(--text) !important;
    padding: 0 16px 0 46px !important;
    font-size: 0.95rem !important;
    box-shadow: none !important;
    transition: border-color .2s, box-shadow .25s, background .2s;
}
.sht-login .form-control::-webkit-input-placeholder { color: #6b7280; }
.sht-login .form-control::placeholder { color: #6b7280; }
.sht-login .form-control:focus {
    border-color: var(--cyan) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(14, 116, 144, 0.15) !important;
    outline: none;
}
.sht-field:focus-within .sht-ic { stroke: var(--cyan); }

/* Visually-hidden labels (kept for a11y) */
.sht-login .control-label {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

/* Primary button */
.sht-login .sht-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 52px;
    float: none !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 12px !important;
    background: var(--cyan) !important;
    color: var(--on-accent) !important;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.98rem !important;
    letter-spacing: 0.03em;
    cursor: pointer;
    box-shadow: 0 10px 24px -10px rgba(14, 116, 144, 0.5);
    transition: transform .15s, box-shadow .25s, background .2s;
}
.sht-login .sht-btn:hover {
    transform: translateY(-2px);
    background: var(--cyan-hover) !important;
    box-shadow: 0 16px 34px -10px rgba(14, 116, 144, 0.6);
}
.sht-login .sht-btn:active { transform: translateY(0); }
.sht-login .sht-btn svg { width: 18px; height: 18px; }

/* Alt actions / links */
.sht-alt { margin-top: 20px; text-align: center; font-size: 0.86rem; color: var(--muted); }
.sht-login .sht-link {
    color: var(--cyan) !important;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    padding: 0;
    transition: color .2s;
}
.sht-login .sht-link:hover { color: var(--cyan-hover) !important; }
.sht-divider {
    height: 1px;
    margin: 6px 0 22px;
    background: linear-gradient(90deg, transparent, rgba(16, 24, 40, 0.12), transparent);
}

/* Messages */
.sht-login .help-block,
.sht-login .color-red { color: #b91c1c !important; font-size: 0.8rem; display: block; margin: -4px 0 10px; }
.sht-login .alert-danger {
    background: #fdeaea;
    border: 1px solid #b91c1c;
    color: #7f1d1d;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.82rem;
    margin-bottom: 14px;
}
.sht-login .alert-danger .close { color: #7f1d1d; opacity: .7; }

/* Pane swap */
#reset_pane { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .sht-login { flex-direction: column; position: absolute; min-height: 100vh; }
    .sht-hero { flex: none; align-items: center; text-align: center; padding: 9vh 8vw 3vh; }
    .sht-tag { margin-inline: auto; }
    .sht-chips { justify-content: center; }
    .sht-auth { flex: none; padding: 2vh 6vw 9vh; }
}
@media (max-width: 480px) {
    .sht-card { padding: 30px 22px; }
    .sht-brand span { letter-spacing: 0.35em; }
}

/* ---------- Accessibility: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .sht-mark path,
    .sht-brand, .sht-tag, .sht-chips,
    .sht-card { animation: none !important; }
    .sht-mark path { stroke-dashoffset: 0; fill: #16191d; }
    .sht-brand, .sht-tag, .sht-chips, .sht-card { opacity: 1; transform: none; }
    .sht-login * { transition: none !important; }
}
