.login-brand img {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    object-fit: contain;
}

.password-field {
    position: relative;
    display: block;
    margin-top: 6px;
}

.login-card .password-field input {
    display: block;
    margin-top: 0;
    padding-right: 46px;
}

.password-field button {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 7px;
    color: #667085;
    background: transparent;
    cursor: pointer;
}

.password-field button:hover,
.password-field button:focus-visible {
    color: #2563eb;
    background: #eff6ff;
    outline: none;
}

.password-field svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-field .eye-closed,
.password-field button[aria-pressed="true"] .eye-open {
    display: none;
}

.password-field button[aria-pressed="true"] .eye-closed {
    display: block;
}

.login-loading {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
    visibility: hidden;
    opacity: 0;
    background: #f8fafc;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.login-loading.visible {
    visibility: visible;
    opacity: 1;
}

.login-loading-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    color: #17233c;
    transform: translateY(8px) scale(.96);
    transition: transform 300ms cubic-bezier(.2,.8,.2,1);
}

.login-loading.visible .login-loading-content {
    transform: translateY(0) scale(1);
}

.login-loading-logo {
    display: grid;
    width: 74px;
    height: 74px;
    margin-bottom: 18px;
    place-items: center;
    border: 1px solid #dbe4f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(23, 35, 60, .12);
    animation: login-logo-pulse 1.2s ease-in-out infinite;
}

.login-loading-logo img { width: 52px; height: 52px; object-fit: contain; }
.login-loading-content strong { font-size: 17px; }
.login-loading-content > span { margin-top: 4px; color: #667085; font-size: 13px; }
.login-loading-dots { display: flex; gap: 6px; margin-top: 18px; }
.login-loading-dots i { width: 7px; height: 7px; border-radius: 50%; background: #2563eb; animation: login-dot 900ms ease-in-out infinite; }
.login-loading-dots i:nth-child(2) { animation-delay: 120ms; }
.login-loading-dots i:nth-child(3) { animation-delay: 240ms; }

@keyframes login-logo-pulse { 50% { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(37, 99, 235, .16); } }
@keyframes login-dot { 0%, 60%, 100% { opacity:.3; transform:translateY(0) } 30% { opacity:1; transform:translateY(-5px) } }

@media (prefers-reduced-motion: reduce) {
    .login-loading,.login-loading-content { transition:none; }
    .login-loading-logo,.login-loading-dots i { animation:none; }
}
