﻿:root {
    --service-bg: #101417;
    --service-panel: #f7f9fb;
    --service-ink: #172027;
    --service-muted: #66717c;
    --service-line: #dfe6ec;
    --service-accent: #0f8b8d;
    --service-accent-strong: #0b686a;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

.service-auth-body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--service-ink);
    background:
        linear-gradient(115deg, rgba(16, 20, 23, .96), rgba(23, 32, 39, .92)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06'%3E%3Cpath d='M0 45h180M0 90h180M0 135h180M45 0v180M90 0v180M135 0v180'/%3E%3C/g%3E%3C/svg%3E");
}

.service-login-shell {
    width: min(1120px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    align-items: center;
    justify-items: center;
    padding: 32px 0;
}

.service-login-shell--single {
    grid-template-columns: 1fr;
}

.service-login-panel {
    width: min(100%, 460px);
    background: var(--service-panel);
    border: 1px solid rgba(255,255,255,.52);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(0,0,0,.32);
    padding: clamp(26px, 4vw, 40px);
}

.service-login-brand {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
}

.service-login-brand--centered {
    justify-content: initial;
    text-align: left;
}

.holding-logo {
    width: min(100%, 150px);
    height: 82px;
    object-fit: contain;
    justify-self: end;
}

.brand-kicker {
    color: var(--service-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.service-login-brand h1 {
    margin: 2px 0 0;
    color: var(--service-ink);
    font-size: 25px;
    font-weight: 850;
}

.service-login-form { display: grid; gap: 18px; }

.auth-field label {
    display: block;
    margin-bottom: 8px;
    color: #34404b;
    font-size: 13px;
    font-weight: 800;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
    border: 1px solid var(--service-line);
    border-radius: 8px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-input-wrap:focus-within {
    border-color: var(--service-accent);
    box-shadow: 0 0 0 4px rgba(15, 139, 141, .12);
}

.auth-input-icon {
    width: 48px;
    color: var(--service-muted);
    text-align: center;
    font-weight: 900;
}

.auth-input {
    width: 100%;
    min-width: 0;
    height: 50px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--service-ink);
    font-size: 15px;
    font-weight: 650;
}

.auth-input::placeholder { color: #9aa5ae; font-weight: 500; }

.password-toggle {
    margin-right: 8px;
    border: 0;
    border-radius: 6px;
    background: #edf3f4;
    color: var(--service-accent-strong);
    font-size: 12px;
    font-weight: 800;
    padding: 8px 10px;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #3f4a54;
    cursor: pointer;
}

.auth-check input { position: absolute; opacity: 0; }

.auth-check span {
    width: 18px;
    height: 18px;
    border: 1px solid #b8c4cc;
    border-radius: 5px;
    background: #fff;
}

.auth-check input:checked + span {
    background: var(--service-accent);
    border-color: var(--service-accent);
    box-shadow: inset 0 0 0 4px #fff;
}

.auth-check strong { font-size: 13px; }

.auth-submit {
    width: 100%;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 8px;
    background: var(--service-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 850;
    transition: transform .18s ease, background .18s ease;
}

.auth-submit:hover { background: var(--service-accent-strong); transform: translateY(-1px); }
.auth-submit svg { width: 20px; height: 20px; fill: currentColor; }

.auth-validation:not(:empty) {
    border: 1px solid rgba(185, 28, 28, .2);
    border-radius: 8px;
    background: #fff1f1;
    color: #9f1239;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
}

.auth-validation ul { margin: 0; padding-left: 18px; }
.auth-field-error { display: block; margin-top: 7px; color: #b91c1c; font-size: 12px; font-weight: 700; }

@media (max-width: 560px) {
    .service-login-shell { width: min(100% - 20px, 1120px); padding: 10px 0; }
    .service-login-panel { padding: 22px; }
    .service-login-brand { margin-bottom: 24px; }
    .service-login-brand { grid-template-columns: 1fr 1fr; gap: 12px; }
    .holding-logo { width: min(100%, 128px); height: 72px; }
    .service-login-brand h1 { font-size: 22px; }
}

