/* RateNova sign-in page */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

.lg-page {
    --nova-0: #140b26;
    --nova-1: #1c1038;
    --nova-2: #2a1852;
    --accent: #8b5cf6;
    --accent-2: #a78bfa;
    --fuchsia: #d946ef;
    --ink: #1e293b;
    --muted: #a49cc0;
    --line: rgba(167, 139, 250, 0.18);
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(1200px 700px at 12% -10%, #3b2470 0%, rgba(59, 36, 112, 0) 55%),
        radial-gradient(1000px 600px at 110% 120%, #4a1d6e 0%, rgba(74, 29, 110, 0) 50%),
        linear-gradient(135deg, var(--nova-0), var(--nova-1) 55%, var(--nova-2));
    color: #ede9fe;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    padding: 28px 40px;
}

/* faint dotted grid overlay */
.lg-bg-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(196, 181, 253, 0.10) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 70%);
}

/* brand mark top-left */
.lg-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; }
.lg-logo-img { height: 40px; width: auto; display: block; }

/* RateNova text wordmark */
.lg-wordmark { display: inline-flex; align-items: center; font-size: 26px; font-weight: 800; color: #fff; letter-spacing: 0.01em; }
.lg-wordmark > span { color: var(--accent-2); }
.lg-wordmark-star { width: 24px; height: 24px; fill: var(--fuchsia); margin-right: 10px; }
.lg-login-logo .lg-wordmark { font-size: 22px; }
.lg-login-logo .lg-wordmark > span { color: #f0abfc; }
.lg-login-logo .lg-wordmark-star { fill: #f0abfc; }

/* layout */
.lg-grid {
    position: relative; z-index: 2;
    max-width: 1500px;
    margin: 0 auto;
    min-height: calc(100vh - 120px);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr) 440px;
    gap: 36px;
    align-items: center;
}
@media (max-width: 1280px) {
    .lg-grid { grid-template-columns: 1fr 440px; }
    .lg-middle { display: none; }
}
@media (max-width: 860px) {
    .lg-grid { grid-template-columns: 1fr; gap: 24px; }
    .lg-intro { text-align: center; }
    .lg-features { max-width: 480px; margin-inline: auto; }
}

/* ---- left intro ---- */
.lg-intro h1 { font-size: 46px; line-height: 1.05; font-weight: 800; margin: 0 0 18px; color: #fff; }
.lg-intro h1 span { color: var(--accent-2); }
.lg-tag { font-size: 16px; color: #c7bfe3; max-width: 420px; margin: 0 0 34px; line-height: 1.5; }
@media (max-width: 860px) { .lg-tag { margin-inline: auto; } }

.lg-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.lg-features li { display: flex; gap: 16px; align-items: flex-start; }
.lg-feat-icon {
    width: 46px; height: 46px; flex: 0 0 auto;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.16);
    border: 1px solid rgba(167, 139, 250, 0.35);
    display: inline-flex; align-items: center; justify-content: center;
}
.lg-feat-icon svg { width: 22px; height: 22px; stroke: #c4b5fd; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lg-features strong { display: block; font-size: 16px; color: #fff; margin-bottom: 3px; }
.lg-features div span { font-size: 13.5px; color: #b3a8d1; line-height: 1.45; }
@media (max-width: 860px) { .lg-features li { text-align: left; } }

/* ---- middle decorative column ---- */
.lg-middle { display: flex; flex-direction: column; gap: 18px; }
.lg-code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 12px; line-height: 1.55; color: #7a6f99;
    margin: 0; white-space: pre; overflow: hidden; opacity: 0.85;
}
.lg-code .c-comment { color: #5b5379; }
.lg-code .c-key { color: #a78bfa; }
.lg-code .c-str { color: #e879f9; }
.lg-code .c-num { color: #fbbf24; }

.lg-card {
    background: rgba(26, 16, 56, 0.55);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 18px;
    backdrop-filter: blur(6px);
}
.lg-card-head {
    font-size: 14px; font-weight: 700; color: #cbd5e1;
    padding-bottom: 12px; margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between;
}
.lg-card-head-icon svg { width: 18px; height: 18px; stroke: #64748b; fill: none; stroke-width: 2; }

.lg-act { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.lg-act-icon {
    width: 30px; height: 30px; flex: 0 0 auto; border-radius: 8px;
    background: rgba(148, 163, 184, 0.12);
    display: inline-flex; align-items: center; justify-content: center;
}
.lg-act-icon svg { width: 15px; height: 15px; stroke: #c4b5fd; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lg-act-body { flex: 1; min-width: 0; }
.lg-act-body strong { display: block; font-size: 13px; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-act-body span { font-size: 11.5px; color: #64748b; font-family: "SFMono-Regular", Consolas, monospace; }
.lg-act-empty { padding: 16px 0; text-align: center; font-size: 13px; color: #64748b; }
.lg-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.lg-badge.done { background: rgba(22, 163, 74, 0.18); color: #4ade80; }
.lg-badge.prog { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }

.lg-env { margin: 4px 0 0; }
.lg-env > div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; }
.lg-env dt { color: #64748b; margin: 0; }
.lg-env dd { color: #e2e8f0; margin: 0; font-weight: 600; }

/* ---- login card ---- */
.lg-login {
    background: #ffffff;
    border-radius: 22px;
    padding: 38px 40px;
    box-shadow: 0 30px 70px rgba(10, 4, 24, 0.5);
    color: var(--ink);
    align-self: center;
}
.lg-login-logo {
    width: fit-content; margin: 0 auto 18px;
    padding: 12px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2a1852, #7c3aed);
    display: flex; align-items: center; justify-content: center;
}
.lg-login-logo img { height: 30px; width: auto; display: block; }
.lg-login h2 { text-align: center; font-size: 26px; font-weight: 800; color: #0f172a; margin: 0 0 8px; }
.lg-login-sub { text-align: center; font-size: 14px; color: #64748b; margin: 0 0 26px; line-height: 1.5; }
.lg-login-sub strong { color: var(--accent); }

.lg-flashes { list-style: none; margin: 0 0 18px; padding: 11px 14px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; color: #b91c1c; font-size: 13px; }

.lg-label { display: block; font-size: 13.5px; font-weight: 600; color: #334155; margin: 0 0 7px; }
.lg-field { position: relative; margin-bottom: 18px; }
.lg-field-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: inline-flex; }
.lg-field-icon svg { width: 18px; height: 18px; stroke: #94a3b8; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lg-field input {
    width: 100%;
    padding: 13px 44px 13px 42px;
    border: 1px solid #d8dee9;
    border-radius: 11px;
    font-size: 14.5px; color: var(--ink);
    background: #f8fafc;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.lg-field input::placeholder { color: #9aa6b8; }
.lg-field input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16); }
.lg-eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 6px; display: inline-flex; }
.lg-eye svg { width: 18px; height: 18px; stroke: #94a3b8; fill: none; stroke-width: 2; }
.lg-eye.on svg { stroke: var(--accent); }

.lg-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.lg-remember { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #475569; cursor: pointer; }
.lg-remember input { width: 16px; height: 16px; accent-color: var(--accent); }
.lg-forgot { font-size: 13.5px; color: var(--accent); text-decoration: none; font-weight: 600; }
.lg-forgot:hover { text-decoration: underline; }

.lg-submit {
    width: 100%;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px;
    border: none; border-radius: 12px;
    background: linear-gradient(90deg, #7c3aed, #d946ef);
    color: #fff; font-size: 15.5px; font-weight: 700; cursor: pointer;
    box-shadow: 0 10px 24px rgba(139, 92, 246, 0.35);
    transition: filter 0.15s, transform 0.05s;
}
.lg-submit:hover { filter: brightness(1.06); }
.lg-submit:active { transform: translateY(1px); }
.lg-submit svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.lg-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 26px; padding-top: 20px; border-top: 1px solid #eef2f7; }
.lg-foot span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #64748b; }
.lg-foot svg { width: 15px; height: 15px; stroke: #94a3b8; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* internal access badge */
.lg-access {
    position: absolute; left: 40px; bottom: 26px; z-index: 2;
    display: flex; align-items: center; gap: 13px;
    background: rgba(26, 16, 56, 0.6);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 18px;
    backdrop-filter: blur(6px);
    max-width: 320px;
}
.lg-access-icon {
    width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px;
    background: rgba(139, 92, 246, 0.18);
    display: inline-flex; align-items: center; justify-content: center;
}
.lg-access-icon svg { width: 19px; height: 19px; stroke: #c4b5fd; fill: none; stroke-width: 2; }
.lg-access strong { display: block; font-size: 13.5px; color: #fff; }
.lg-access span { font-size: 12px; color: #b3a8d1; }
@media (max-width: 1280px) { .lg-access { position: static; margin: 24px auto 0; } }

/* server name bottom-right */
.lg-server {
    position: absolute; right: 26px; bottom: 22px; z-index: 2;
    color: #fff; opacity: 0.8;
    font-size: 12.5px; letter-spacing: 0.05em;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
@media (max-width: 860px) { .lg-server { position: static; text-align: center; margin-top: 14px; } }
