/* ================================================================
   MWS PRO — auth.css
   Страница входа. Самодостаточный файл (без sp-tokens.css).
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    min-height: 100%;
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left,  rgba(37,99,235,0.10), transparent 26%),
        radial-gradient(circle at bottom right, rgba(16,185,129,0.07), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
}

.login-card {
    width: min(100%, 380px);
    padding: 36px;
    border: 1px solid rgba(219,228,238,0.98);
    border-radius: 22px;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 24px 60px rgba(20,37,63,0.16);
    backdrop-filter: blur(14px);
    text-align: center;
}

.logo {
    margin-bottom: 28px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #0f172a;
}
.logo-sub {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
    margin-top: 4px;
    letter-spacing: 0;
}
.logo-version {
    font-size: 13px;
    color: var(--auth-muted);
    margin: -10px 0 20px;
}

.login-field { margin-bottom: 12px; }
.login-field label { display: block; text-align: left; font-size: 12px; font-weight: 700; color: #64748b; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.04em; }

.login-card input {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid #dbe4ee;
    border-radius: 12px;
    background: rgba(255,255,255,0.98);
    font-size: 15px;
    font-family: inherit;
    color: #1f2a37;
    transition: border-color .16s, box-shadow .16s;
    margin-bottom: 12px;  /* vertical spacing между inputs */
}
.login-card input[type="checkbox"] { margin-bottom: 0; width: auto; }
.login-card input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.login-card button {
    width: 100%;
    margin-top: 8px;
    padding: 13px 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(37,99,235,0.22);
    transition: transform .16s, box-shadow .16s, opacity .16s;
}
.login-card button:hover  { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(37,99,235,0.28); }
.login-card button:active { transform: translateY(0); }

/* Remember-me checkbox row — left-aligned, компактно */
.remember-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 4px 2px 16px;
    padding: 0;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    user-select: none;
    text-align: left;
}
.remember-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #2563eb;
}
.remember-row span {
    line-height: 1.3;
    white-space: nowrap;  /* в одну строку — не разрывает */
}

.error {
    min-height: 20px;
    margin-bottom: 12px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

.login-footer { margin-top: 20px; font-size: 12px; color: #94a3b8; }

.role-hint {
    margin-top: 20px;
    padding: 14px;
    background: rgba(47,128,237,0.06);
    border: 1px solid rgba(47,128,237,0.15);
    border-radius: 10px;
    font-size: 12px;
    color: var(--auth-muted);
    text-align: left;
    line-height: 1.6;
}
.role-hint strong { color: var(--auth-text); }

.access-card { text-align: center; }
.access-icon { font-size: 52px; margin-bottom: 16px; }
.access-title { font-size: 20px; font-weight: 800; color: var(--auth-text); margin-bottom: 8px; }
.access-sub { font-size: 14px; color: var(--auth-muted); margin-bottom: 24px; line-height: 1.5; }
.btn-back {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(180deg,#4595fb 0%,#2f80ed 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.16s;
}
.btn-back:hover { opacity: 0.88; }
.btn-logout {
    display: inline-block;
    margin-left: 10px;
    padding: 12px 20px;
    background: transparent;
    color: var(--auth-muted);
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

@media (max-width: 480px) {
    body        { padding: 16px; }
    .login-card { padding: 24px; border-radius: 18px; }
    .logo       { font-size: 22px; }
}
