/*
 * Standalone login for manager UI.
 * Владелец: только корневая страница входа, без old shell/Bootstrap.
 */

body.login-page {
    min-height: 100vh;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
}

.login-panel {
    width: min(100%, 420px);
    border: 1px solid var(--line);
    border-radius: var(--r-l);
    background: color-mix(in srgb, var(--bg-1) 92%, transparent);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.login-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.login-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    color: var(--ink);
    font-weight: 800;
}

.login-brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: var(--r-m);
    background: var(--accent);
    color: #fff;
}

.login-brand-mark svg {
    width: 22px;
    height: 22px;
}

.login-brand-name {
    min-width: 0;
    font-size: 20px;
    line-height: 1;
    white-space: nowrap;
}

.login-brand-name sup {
    margin-left: 1px;
    color: var(--muted);
    font-size: 11px;
}

.login-theme {
    display: inline-grid;
    grid-template-columns: repeat(3, 32px);
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    background: var(--bg-0);
}

.login-theme button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: var(--r-s);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.login-theme button:hover,
.login-theme button.active {
    background: var(--accent-soft);
    color: var(--ink);
}

.login-theme svg {
    width: 16px;
    height: 16px;
}

.login-form {
    display: grid;
    gap: 18px;
    padding: 28px 28px 30px;
}

.login-copy {
    display: grid;
    gap: 6px;
}

.login-copy h1 {
    margin: 0;
    color: var(--ink);
    font-size: 28px;
    line-height: 1.12;
}

.login-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.login-field {
    display: grid;
    gap: 8px;
}

.login-field label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.login-input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    background: var(--bg-0);
    color: var(--ink);
    font: inherit;
    padding: 0 14px;
}

.login-input:focus {
    border-color: var(--accent);
    outline: 0;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.login-error {
    color: var(--danger);
    font-size: 13px;
}

.login-error ul {
    margin: 0;
    padding-left: 18px;
}

.login-submit {
    min-height: 50px;
    border: 0;
    border-radius: var(--r-m);
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.login-submit:hover {
    filter: brightness(1.05);
}

@media (max-width: 520px) {
    .login-shell {
        align-items: start;
        padding: 18px 12px;
    }

    .login-panel {
        border-radius: var(--r-m);
    }

    .login-head {
        padding: 14px;
    }

    .login-form {
        padding: 22px 16px 18px;
    }

    .login-brand-name {
        font-size: 18px;
    }
}
