:root {
    --accent: #e50914;
    --accent-rgb: 229, 9, 20;
    --radius: 4px;
    --bone: #f5f9ff;
    --paper: #ffffff;
    --walnut: var(--accent);
    --line: #d9e7f9;
    --text: #1f3550;
    --muted: #5b7ca7;
    --error: #c74a45;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bone) 0%, #eef5ff 100%);
}

.card {
    width: 100%;
    max-width: 420px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 32px;
}

.brand img,
.mark {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(var(--accent-rgb), 0.18);
}

.brand strong {
    display: block;
    font-size: 20px;
    line-height: 1.1;
}

h1 {
    margin: 0 0 8px;
    color: var(--walnut);
    text-align: center;
    font-size: 24px;
}

p {
    color: var(--muted);
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}

.subtitle {
    margin: 0 0 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: var(--walnut);
    text-align: left;
    font-size: 13px;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    background: #fcfeff;
    font: inherit;
}

input:focus {
    outline: none;
    border-color: var(--walnut);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
}

button {
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: var(--radius);
    color: #fff;
    background: var(--walnut);
    cursor: pointer;
    font-weight: 700;
}

button:hover {
    transform: translateY(-1px);
}

.password-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.password-wrap input {
    padding-right: 46px;
    margin-bottom: 0;
}

.password-toggle {
    position: absolute;
    top: 0;
    right: 12px;
    bottom: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: auto 0;
    border: 0;
    outline: none;
    color: var(--muted);
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    appearance: none;
}

.password-toggle:hover,
.password-toggle:focus,
.password-toggle:active {
    transform: none;
    outline: none;
    box-shadow: none;
}

.password-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
}

.error {
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid rgba(199, 74, 69, 0.2);
    color: var(--error);
    background: rgba(199, 74, 69, 0.1);
    font-size: 14px;
}

.reset-error {
    color: #e50914;
    border-color: rgba(229, 9, 20, 0.25);
    background: rgba(229, 9, 20, 0.1);
}

.message {
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid rgba(47, 111, 208, 0.2);
    color: #2f6fd0;
    background: rgba(47, 111, 208, 0.08);
    font-size: 13px;
    line-height: 1.5;
}

a {
    display: block;
    margin-top: 18px;
    color: var(--accent);
    text-align: center;
    text-decoration: none;
    font-size: 13px;
}
