/* Auth UI: standalone component styles, shared design tokens from theme.css. */
* { box-sizing: border-box; }

.login-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--canvas);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.5;
}

.login-page button,
.login-page input { font: inherit; }

.login-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    min-height: 100vh;
    min-height: 100svh;
    padding: 32px 18px;
}

.login-identity {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 9px;
    width: min(100%, 410px);
    text-align: center;
}

.login-identity__mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: var(--accent);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .025em;
}

.login-identity strong,
.login-identity span:not(.login-identity__mark) { display: block; }

.login-identity strong {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.025em;
}

.login-identity div span {
    color: var(--muted);
    font-size: 12px;
}

.login-card {
    width: min(100%, 410px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--paper);
    box-shadow: 0 15px 48px color-mix(in srgb, var(--navy) 9%, transparent);
}

.login-card__heading {
    padding: 17px 26px;
    background: var(--accent);
    text-align: center;
}

.login-card__heading h1 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.45;
}

.login-card__body { padding: 28px 30px 32px; }
.login-form { display: grid; gap: 19px; }
.login-field { display: grid; gap: 7px; }

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

.login-field input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--paper);
    color: var(--ink);
    outline-offset: 2px;
}

.login-field input::placeholder { color: var(--muted); }

.login-field input:focus-visible,
.login-password__toggle:focus-visible,
.login-submit:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.login-password { position: relative; }
.login-password input { padding-right: 54px; }

.login-password__toggle {
    position: absolute;
    inset-block: 4px;
    right: 5px;
    display: grid;
    place-items: center;
    width: 42px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
}

.login-password__toggle:hover {
    background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.login-password__eye { display: block; width: 20px; height: 20px; }
.login-password__slash { display: none; }
.login-password__toggle[aria-pressed="true"] .login-password__slash { display: block; }

.login-submit {
    width: 100%;
    min-height: 46px;
    margin-top: 3px;
    padding: 11px 16px;
    border: 1px solid var(--accent);
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease;
}

.login-submit:hover {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
}

.login-message {
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid;
    border-radius: 9px;
    font-size: 13px;
}

.login-message--error {
    border-color: #e8bfc1;
    background: #fff5f5;
    color: #912b32;
}

.login-message--success {
    border-color: #c1e0c9;
    background: #f2fbf4;
    color: #216232;
}

@media (max-width: 460px) {
    .login-shell { gap: 20px; padding: 25px 14px; }
    .login-card__body { padding: 24px 20px 27px; }
}

@media (prefers-reduced-motion: reduce) {
    .login-submit { transition: none; }
}
