* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--page-flat);
    color: var(--text);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html[data-site-theme="light"] body,
html[data-site-theme="victory_light"] body {
    background: #fff;
}

.card {
    width: min(100%, 420px);
    padding: 36px 32px 30px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

html[data-site-theme="dark"] .card {
    box-shadow: var(--shadow), inset 0 1px 0 rgba(239, 192, 137, 0.04);
}

.logo-wrap {
    display: flex;
    justify-content: center;
    margin: 0 0 28px;
}

.brand-logo {
    display: block;
    width: 240px;
    height: auto;
}

.auth-title {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 24px;
    line-height: 1.15;
    text-align: center;
}

.auth-copy {
    margin: -2px 0 22px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.notice {
    margin: 0 0 20px;
    padding: 13px 15px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
}

.notice.success {
    background: var(--success-bg);
    color: var(--success-text);
}

.notice.error {
    background: var(--error-bg);
    color: var(--error-text);
}

form {
    display: grid;
    gap: 16px;
}

.form-link {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.form-link a,
.form-link a:visited,
.form-link a:focus {
    color: #7f1d1d;
    font-weight: 700;
    text-decoration: none;
}

.form-link a:hover {
    color: #9b2c2c;
    text-decoration: underline;
}

.field {
    display: grid;
    gap: 7px;
}

label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 14px;
    background: var(--input-bg);
    color: var(--text);
    font: inherit;
    font-size: 15px;
    transition: border-color 120ms, box-shadow 120ms;
}

input:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 4px var(--input-focus-ring);
}

.submit-btn {
    margin-top: 4px;
    width: 100%;
    padding: 14px;
    border: 0;
    border-radius: 999px;
    background: var(--button-bg);
    color: var(--button-text);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 140ms, transform 140ms, box-shadow 140ms;
}

.submit-btn:hover {
    background: var(--button-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.submit-btn:disabled {
    cursor: wait;
    opacity: .78;
    transform: none;
    box-shadow: none;
}

.sending-status {
    margin: -2px 0 0;
    color: #7f1d1d;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.footnote {
    margin: 20px 0 0;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
}

.footnote a {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.footnote a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    .card {
        padding: 26px 20px 22px;
        border-radius: 20px;
    }
}
