.login-form-card .field {
    margin-bottom: 16px;
}

.login-form-card .field-label {
    margin-bottom: 6px;
    color: var(--ll-ink-2);
    font-size: 12px;
    letter-spacing: 0;
}

.login-form-card .field-wrap {
    position: relative;
}

.login-form-card .field-input {
    height: 50px;
    padding-left: 44px;
    font-size: 16px;
    background: var(--ll-surface-2);
    border-color: color-mix(in srgb, var(--ll-ink-muted) 42%, var(--ll-surface));
    border-radius: var(--ll-radius-lg);
}

.login-form-card .field-input::placeholder {
    color: var(--ll-ink-muted);
    font-size: 13px;
}

.login-form-card .field-input:focus {
    border-color: var(--login-accent, var(--ll-primary));
    box-shadow: var(--ll-ring);
}

.login-form-card .field-input.is-invalid {
    border-color: var(--ll-danger);
}

.login-form-card .field-input:-webkit-autofill {
    -webkit-text-fill-color: var(--ll-ink);
    box-shadow: 0 0 0 1000px var(--ll-surface-2) inset;
    caret-color: var(--ll-ink);
}

.login-form-card .field-input:-webkit-autofill:focus {
    box-shadow: 0 0 0 1000px var(--ll-surface-2) inset, var(--ll-ring);
}

.login-form-card .field-icon {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 18px;
    height: 18px;
    pointer-events: none;
    color: var(--ll-ink-muted);
}

.login-form-card .field-error, .login-form-card .req {
    color: var(--login-error-text, var(--ll-danger));
}

.login-form-card .field-error:empty {
    display: none;
}

.login-form-card .field-wrap:has(.btn-reveal) .field-input {
    padding-right: 52px;
}

.login-form-card .btn-reveal {
    position: absolute;
    right: 3px;
    top: 3px;
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--ll-ink-muted);
    cursor: pointer;
    border-radius: var(--ll-radius-sm);
}

.login-form-card .btn-reveal:hover {
    color: var(--ll-ink);
    background: var(--ll-neutral-soft);
}

.login-form-card .btn-reveal svg {
    width: 20px;
    height: 20px;
}

.login-form-card .btn-auth {
    width: 100%;
    min-height: 52px;
    border-radius: var(--ll-radius-lg);
}

.login-form-card .btn-auth .btn-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-form-card .btn-auth .btn-icon {
    width: 18px;
    height: 18px;
}

.login-form-card .btn-auth.is-busy .btn-icon {
    display: none;
}

.login-page .auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -2px 0 14px;
}

.login-page .auth-row .u-sm {
    color: var(--ll-ink-2);
    font-size: 12px;
}

.login-page .auth-hint {
    margin: 20px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--ll-border);
    border-radius: var(--ll-radius-sm);
    background: var(--ll-surface-2);
    color: var(--ll-ink-2);
    font-size: 12.5px;
    line-height: 1.5;
}

.login-page .auth-hint strong {
    color: var(--ll-ink);
}

.login-page .auth-foot {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--ll-border);
    text-align: center;
    color: var(--ll-ink-muted);
    font-size: 13px;
}

.login-page .auth-foot a {
    color: var(--login-accent, var(--ll-primary));
    font-weight: var(--ll-weight-semibold);
}

.login-page .auth-foot a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pw-meter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .25s ease, opacity .25s ease, margin-top .25s ease;
}

.pw-meter.is-visible {
    max-height: 24px;
    opacity: 1;
}

.pw-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    flex: 1 1 auto;
}

.pw-bars > span {
    height: 4px;
    border-radius: 999px;
    background: var(--ll-border);
    transition: background .3s ease, box-shadow .3s ease;
}

.pw-label {
    flex: 0 0 auto;
    min-width: 82px;
    text-align: right;
    font-size: 12px;
    font-weight: var(--ll-weight-medium);
    letter-spacing: .01em;
    color: var(--ll-ink-muted);
    transition: color .3s ease;
}

.pw-meter[data-score="1"] .pw-bars > span:nth-child(-n+1),
.pw-meter[data-score="2"] .pw-bars > span:nth-child(-n+2),
.pw-meter[data-score="3"] .pw-bars > span:nth-child(-n+3),
.pw-meter[data-score="4"] .pw-bars > span:nth-child(-n+4) {
    box-shadow: 0 0 10px -2px currentColor;
}

.pw-meter[data-score="1"] .pw-bars > span:nth-child(-n+1) {
    background: var(--ll-danger);
    color: var(--ll-danger);
}

.pw-meter[data-score="2"] .pw-bars > span:nth-child(-n+2) {
    background: var(--ll-warning, #e8933a);
    color: var(--ll-warning, #e8933a);
}

.pw-meter[data-score="3"] .pw-bars > span:nth-child(-n+3) {
    background: var(--ll-info, #3ba3d8);
    color: var(--ll-info, #3ba3d8);
}

.pw-meter[data-score="4"] .pw-bars > span:nth-child(-n+4) {
    background: var(--ll-success);
    color: var(--ll-success);
}

.pw-meter[data-score="1"] .pw-label {
    color: var(--ll-danger);
}

.pw-meter[data-score="2"] .pw-label {
    color: var(--ll-warning, #e8933a);
}

.pw-meter[data-score="3"] .pw-label {
    color: var(--ll-info, #3ba3d8);
}

.pw-meter[data-score="4"] .pw-label {
    color: var(--ll-success);
}

.pw-rules {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 14px;
}

.pw-rules li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    line-height: 1.3;
    color: var(--ll-ink-muted);
    transition: color .2s ease;
}

.pw-rules li svg {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    padding: 2px;
    border-radius: 50%;
    color: transparent;
    background: var(--ll-border);
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.pw-rules li.is-ok {
    color: var(--ll-success);
}

.pw-rules li.is-ok svg {
    color: #fff;
    background: var(--ll-success);
    transform: scale(1.06);
}

@media (max-width: 560px) {
    .pw-rules {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pw-meter,
    .pw-bars > span,
    .pw-label,
    .pw-rules li,
    .pw-rules li svg {
        transition: none;
    }

    .login-form-card .btn-auth .spinner {
        animation: none;
    }
}
