/* Styling for Views/Account/Login.cshtml in Orvez.SuperWeb - copied 100% from Orvez.Web */
:root {
    --bg: #101015;
    --card: #1a1a22;
    --field: #24242d;
    --border: #2c2c37;
    --border-soft: #34343f;
    --text: #f5f5f7;
    --muted: #9b9ba8;
    --muted-dim: #64646f;

    --productive: #2dd4bf;
    --nonproductive: #fb7185;
    --neutral: #fbbf24;
    --idle: #6b6f7a;

    --accent: #818cf8;
    --brand-1: #8b5cf6;
    --brand-2: #3b82f6;
    --saffron: #ff9933;
    --focus-ring: rgba(129, 140, 248, 0.35);
    --mono: "Cascadia Code", "Consolas", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--productive) 55%, var(--border-soft)) transparent;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background-color: color-mix(in srgb, var(--productive) 55%, var(--border-soft));
    border-radius: 10px;
    border: 2px solid var(--bg);
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--productive); }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", "Segoe UI Variable", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

.wall {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, 34px);
    grid-auto-rows: 34px;
    gap: 8px;
    padding: 24px;
    z-index: 0;
    justify-content: center;
    mask-image: radial-gradient(ellipse 62% 75% at 30% 50%, black 35%, transparent 82%);
    -webkit-mask-image: radial-gradient(ellipse 62% 75% at 30% 50%, black 35%, transparent 82%);
}

.tile {
    border-radius: 7px;
    background: #1c1c24;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.6s ease, box-shadow 0.6s ease;
}

.tile.lit {
    animation: breathe 4s ease-in-out infinite;
    animation-delay: var(--d, 0s);
}

.tile.productive { background: color-mix(in srgb, var(--productive) 38%, #1c1c24); box-shadow: 0 0 22px -2px color-mix(in srgb, var(--productive) 85%, transparent); }
.tile.neutral     { background: color-mix(in srgb, var(--neutral) 34%, #1c1c24); box-shadow: 0 0 22px -2px color-mix(in srgb, var(--neutral) 80%, transparent); }
.tile.idle        { background: color-mix(in srgb, var(--idle) 42%, #1c1c24); }
.tile.nonproductive { background: color-mix(in srgb, var(--nonproductive) 32%, #1c1c24); box-shadow: 0 0 22px -2px color-mix(in srgb, var(--nonproductive) 80%, transparent); }

@keyframes breathe {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.stage {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 430px;
    padding: 24px;
    margin-right: 8vw;
}

@media (max-width: 900px) {
    .stage { margin-right: 0; }
}

.status-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--muted-dim);
}

.status-line .pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--productive);
    box-shadow: 0 0 8px var(--productive);
    animation: breathe 2.4s ease-in-out infinite;
}

.card {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 36px 32px 28px;
    box-shadow:
      0 40px 80px -30px rgba(0, 0, 0, 0.7),
      0 0 0 1px rgba(255, 255, 255, 0.02) inset,
      0 0 100px -40px rgba(129, 140, 248, 0.4);
}

.brand-row {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 4px;
}

.brand-row .glyph {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--productive);
    margin-right: 8px;
    align-self: center;
    box-shadow: 0 0 10px var(--productive);
}

.brand-row .wordmark {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--muted);
}

.card h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 10px 0 6px;
}

.card .sub {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 26px;
    line-height: 1.5;
}

.field { margin-bottom: 14px; }

.field label {
    display: block;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-dim);
    margin-bottom: 7px;
}

.field .input-shell {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--field);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field .input-shell:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.field input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: none;
    color: var(--text);
    font-size: 13.5px;
    font-family: inherit;
    padding: 10px 12px;
}

.field input::placeholder { color: var(--muted-dim); }

.field .toggle-visibility {
    background: none;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    padding: 8px 12px 8px 4px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.04em;
}

.field .toggle-visibility:hover { color: var(--text); }

.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 20px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}

.remember input[type="checkbox"] {
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 4px;
    border: 1.5px solid var(--border-soft);
    background: var(--field);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.remember input[type="checkbox"]:checked {
    background: var(--productive);
    border-color: transparent;
}

.remember input[type="checkbox"]:checked::after {
    content: "";
    width: 4px;
    height: 8px;
    border: solid #0b0b0e;
    border-width: 0 1.8px 1.8px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.btn-primary {
    width: 100%;
    border: 0;
    border-radius: 9px;
    padding: 12px 20px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    color: #0b0b0e;
    cursor: pointer;
    background: var(--productive);
    box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--productive) 70%, transparent);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { transform: translateY(1px); }

.login-error {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.5;
    color: var(--nonproductive);
    background: color-mix(in srgb, var(--nonproductive) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--nonproductive) 35%, transparent);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 16px;
}

.demo-hint {
    display: flex;
    gap: 9px;
    margin-top: 18px;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px dashed var(--border-soft);
    background: rgba(255, 255, 255, 0.02);
}

.demo-hint .ic { font-size: 13px; line-height: 1.4; }

.demo-hint p {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.55;
    color: var(--muted);
}

.demo-hint code {
    font-family: var(--mono);
    color: var(--text);
    background: var(--field);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 11px;
}

.form-footer {
    margin-top: 20px;
    font-size: 10.5px;
    color: var(--muted-dim);
    text-align: center;
}

.form-footer .credit { color: var(--saffron); font-weight: 600; }
