@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,500&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --ink: #1B2340;
    --ink-soft: #4A5178;
    --paper: #F5F6FA;
    --paper-alt: #FFFFFF;
    --coral: #FF6B54;
    --coral-dark: #E5523C;
    --coral-bg: #FFF1EE;
    --line: #DFE2EC;
    --line-strong: #C6CBDD;
    --danger: #C0392B;
    --danger-bg: #FDF0EE;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;

    --shadow-card: 0 20px 40px rgba(27, 35, 64, 0.14);
    --shadow-coral: 0 6px 18px rgba(255, 107, 84, 0.28);

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Manrope', 'Segoe UI', Roboto, Arial, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: 1.5rem;
}

.login-card {
    background: var(--paper-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    animation: rise 480ms var(--ease);
}

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

/* Фирменный элемент: плоская коралловая полоса, без градиентов */
.login-card::before {
    content: "";
    display: block;
    height: 3px;
    background: var(--coral);
}

.login-header {
    padding: 32px 32px 20px;
}

.login-header .eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 12px;
}

.login-header h1 {
    font-family: var(--font-display);
    color: var(--ink);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.login-body {
    padding: 8px 32px 32px;
}

.errorlist {
    list-style: none;
    margin-bottom: 16px;
}

.errorlist li,
.message-error {
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 13px;
    font-weight: 500;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    border: 1px solid rgba(192, 57, 43, 0.2);
}

.login-body p {
    margin-bottom: 18px;
}

.login-body label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--ink-soft);
    margin-bottom: 7px;
}

.login-body input {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    background: var(--paper-alt);
    transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.login-body input:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(255, 107, 84, 0.16);
}

.login-submit {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 13px;
    background: var(--coral);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    font-family: inherit;
    cursor: pointer;
    margin-top: 6px;
    box-shadow: var(--shadow-coral);
    transition: background 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}

.login-submit:hover {
    background: var(--coral-dark);
    box-shadow: 0 10px 22px rgba(229, 82, 60, 0.32);
    transform: translateY(-2px);
}

.login-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(229, 82, 60, 0.24);
}

.login-submit:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}