/* JANUS · Login
   Split screen: a still of the Home water video on the left, the login form on the
   right. Same black/blue palette as Home (home.css). Stacks on mobile. */

:root {
    --bg: #000;
    --panel: #0a0a0a;
    --line: #2a2a2a;
    --text: #e6e6e6;
    --muted: #8c8c8c;
    --blue: #00b0ff;
    --neg: #ff5f56;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.lg-split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(380px, 1fr);
    min-height: 100svh;
}

/* ── Left: image ────────────────────────────────────────── */
.lg-visual {
    position: relative;
    overflow: hidden;
    background: #03080c url("media/waves-poster.jpg") center / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 2.5rem 2.8rem;
}
.lg-shade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lg-shade {
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent 45%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0.75));
}
.lg-brand {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.12em;
    color: #fff;
    text-decoration: none;
}
.lg-brand span { color: var(--blue); }
.lg-visual-copy { position: relative; z-index: 1; }
.lg-headline {
    font-size: clamp(2rem, 3.6vw, 3.6rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
    color: #fff;
}
.lg-headline--accent { color: var(--blue); }

/* ── Right: form ────────────────────────────────────────── */
.lg-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: var(--bg);
    border-left: 1px solid var(--line);
}
.login-card { width: 100%; max-width: 400px; }

.login-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    color: #fff;
    text-transform: uppercase;
    border-left: 3px solid var(--blue);
    padding-left: 0.9rem;
    margin-bottom: 1.6rem;
}
.login-title {
    font-size: clamp(1.7rem, 2.4vw, 2.2rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 0.9rem;
}
.login-subtitle { font-size: 0.92rem; color: var(--muted); line-height: 1.6; margin: 0 0 2rem; }

.login-form-group { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.2rem; }
.login-label { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.login-input {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--panel);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    transition: border-color 0.15s;
}
.login-input:focus { outline: none; border-color: var(--blue); }

.login-button {
    width: 100%;
    margin-top: 0.8rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--blue);
    border-radius: 0;
    background: var(--blue);
    color: #000;
    font: 700 0.85rem/1 Arial, Helvetica, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s;
}
.login-button:hover { background: #33c1ff; }
.login-button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.login-footer-text {
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.6;
}
.login-error {
    border: 1px solid rgba(255, 95, 86, 0.5);
    background: rgba(255, 95, 86, 0.1);
    color: #ffb3ae;
    padding: 0.6rem 0.8rem;
    font-size: 0.82rem;
    margin-bottom: 1.2rem;
}

/* ── Mobile: image becomes a band on top ────────────────── */
@media (max-width: 860px) {
    .lg-split { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .lg-visual { min-height: 38svh; padding: 1.4rem 1rem 1.6rem; }
    .lg-headline { font-size: clamp(1.6rem, 7vw, 2.4rem); }
    .lg-panel { border-left: none; border-top: 1px solid var(--line); padding: 2.2rem 1rem 3rem; align-items: flex-start; }
}
