/* Страница входа — редизайн по макету (2026-07-21) */
body.login-page {
    background: #eef2f7;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 24px;
    box-sizing: border-box;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 12px 40px rgba(26, 58, 107, 0.10), 0 2px 8px rgba(26, 58, 107, 0.06);
    padding: 44px 40px 40px;
    box-sizing: border-box;
    animation: loginFadeUp 0.5s ease both;
}

@keyframes loginFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Brand */
.login-brand { text-align: center; margin-bottom: 26px; }
.login-brand img { width: 190px; max-width: 70%; height: auto; }
.login-subtitle {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid #e6ecf4;
    color: #7a8aa0;
    font-size: 14px;
}

/* Error */
.login-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff0f0;
    border: 1px solid #f3c5c5;
    color: #c0392b;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 20px;
}
.login-error svg { flex: 0 0 auto; width: 18px; height: 18px; }

/* Fields */
.login-field { margin-bottom: 18px; }
.login-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5b6b82;
    margin-bottom: 8px;
}
.input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f4f8fe;
    border: 1.5px solid #dce4ef;
    border-radius: 16px;
    padding: 0 16px;
    height: 52px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.input-wrapper:focus-within {
    border-color: #2a6fbf;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(42, 111, 191, 0.15);
}
.input-wrapper .icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: #8ba0bc;
}
.input-wrapper input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 15px;
    color: #1a3a6b;
    font-family: inherit;
}
.input-wrapper input::placeholder { color: #a3b3c8; }

/* Eye toggle */
.eye-toggle {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px;
    color: #8ba0bc;
    transition: color 0.2s ease;
}
.eye-toggle:hover { color: #2a6fbf; }
.eye-toggle svg { width: 20px; height: 20px; }

/* Submit */
.btn-login {
    width: 100%;
    height: 52px;
    margin-top: 8px;
    border: none;
    border-radius: 40px;
    background: #1a3a6b;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.btn-login:hover { background: #0f2b51; }
.btn-login .arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}
.btn-login:hover .arrow { transform: translateX(4px); }

/* Adaptive */
@media (max-width: 480px) {
    body.login-page { padding: 16px; }
    .login-card {
        padding: 32px 22px 28px;
        border-radius: 24px;
    }
    .login-brand img { width: 160px; }
}
