:root {
    color-scheme: dark;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #e7edf5;
    background: #0a0f16;
    font-synthesis: none;
    --page: #0a0f16;
    --surface: #101720;
    --surface-raised: #141d28;
    --line: #243140;
    --line-soft: #1b2633;
    --text: #e7edf5;
    --muted: #8d9bad;
    --quiet: #617083;
    --accent: #4fc3ad;
    --danger: #e3747f;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 22%, rgba(79, 195, 173, .08), transparent 32rem),
        var(--page);
}

button, input { font: inherit; }

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 1.15fr) minmax(440px, .85fr);
}

.identity {
    min-height: 100vh;
    padding: clamp(32px, 6vw, 84px);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line-soft);
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: #07120f;
    background: var(--accent);
    font-size: .88rem;
    font-weight: 800;
}

.brand > span:last-child { display: grid; line-height: 1.1; }
.brand strong { font-size: 1.05rem; letter-spacing: .01em; }
.brand small { margin-top: 5px; color: var(--quiet); font-size: .7rem; }

.identity-copy {
    max-width: 650px;
    margin: auto 0;
    padding: 70px 0;
}

.eyebrow {
    margin: 0;
    color: var(--accent);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.identity h1 {
    margin: 16px 0 22px;
    max-width: 620px;
    font-size: clamp(2.5rem, 5vw, 5.6rem);
    font-weight: 620;
    letter-spacing: -.055em;
    line-height: .98;
}

.identity-copy > p:last-child {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(.92rem, 1.4vw, 1.08rem);
    line-height: 1.65;
}

.safe-mode {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--quiet);
    font-size: .72rem;
}

.safe-mode i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(79, 195, 173, .08);
}

.login-panel {
    min-height: 100vh;
    padding: 32px;
    display: grid;
    place-items: center;
    background: rgba(16, 23, 32, .45);
}

.login-card {
    width: min(100%, 430px);
    padding: clamp(28px, 4vw, 46px);
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(16, 23, 32, .96);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
}

.login-card header h2 {
    margin: 9px 0 8px;
    color: var(--text);
    font-size: 1.55rem;
    font-weight: 650;
    letter-spacing: -.025em;
}

.login-card header > p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: .78rem;
}

.status-message {
    margin: 22px 0 -4px;
    padding: 11px 12px;
    border: 1px solid;
    border-radius: 7px;
    font-size: .75rem;
}

.status-message.error {
    color: #ef9ba4;
    border-color: #653a42;
    background: #24171c;
}

.status-message.success {
    color: #77d4c1;
    border-color: #2d6258;
    background: #12231f;
}

form {
    display: grid;
    margin-top: 30px;
}

label {
    margin: 0 0 7px;
    color: #bdc8d5;
    font-size: .72rem;
    font-weight: 600;
}

input {
    width: 100%;
    height: 46px;
    margin-bottom: 19px;
    padding: 0 13px;
    border: 1px solid #2b3949;
    border-radius: 7px;
    outline: 0;
    color: var(--text);
    background: #0b1118;
    transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus {
    border-color: #477264;
    box-shadow: 0 0 0 3px rgba(79, 195, 173, .08);
}

button {
    height: 47px;
    margin-top: 4px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #5dd2bb;
    border-radius: 7px;
    color: #07120f;
    background: var(--accent);
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

button:hover { background: #67d4bf; }
button:active { transform: translateY(1px); }

.login-card footer {
    margin-top: 28px;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-top: 1px solid var(--line-soft);
    color: var(--quiet);
    font-size: .65rem;
}

.login-card footer span { color: var(--accent); font-size: .45rem; }

@media (max-width: 850px) {
    .login-shell { grid-template-columns: 1fr; }
    .identity { min-height: auto; padding: 28px 24px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
    .identity-copy { margin: 55px 0 35px; padding: 0; }
    .identity h1 { font-size: clamp(2.3rem, 10vw, 4rem); }
    .identity-copy > p:last-child { font-size: .9rem; }
    .safe-mode { display: none; }
    .login-panel { min-height: auto; padding: 42px 20px 60px; }
}

@media (max-width: 480px) {
    .identity { padding: 23px 20px; }
    .identity-copy { margin: 42px 0 24px; }
    .identity h1 { margin-bottom: 16px; }
    .login-card { padding: 27px 22px; }
}
