:root {
    --text: #0c0c0c;
    --muted: #6b6b6b;
    --line: rgba(15, 23, 42, 0.08);
    --line-strong: rgba(15, 23, 42, 0.12);
    --surface: #ffffff;
    --surface-warm: #fbfaf9;
    --input-bg: #f8f8f7;
    --input-focus-bg: #ffffff;
    --focus-ring: rgba(15, 23, 42, 0.18);
    --notice-bg: linear-gradient(180deg, #f4f4f3 0%, #f0efee 100%);
    --notice-border: rgba(15, 23, 42, 0.1);
    --notice-text: #4a4a4a;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 12px 28px -8px rgba(15, 23, 42, 0.1);
    --radius: 16px;
    --radius-input: 10px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Google Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background-color: #e9e8e6;
    background-image:
        radial-gradient(ellipse 90% 65% at 50% -15%, rgba(255, 255, 255, 0.75), transparent 52%),
        radial-gradient(ellipse 70% 50% at 100% 100%, rgba(220, 225, 232, 0.45), transparent 55%),
        radial-gradient(ellipse 60% 45% at 0% 85%, rgba(235, 233, 228, 0.9), transparent 50%),
        linear-gradient(165deg, #ebeae8 0%, #e4e3e0 48%, #dfdeda 100%);
    -webkit-font-smoothing: antialiased;
}

.shell {
    width: min(100% - 40px, 400px);
    margin: 0 auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0 36px;
}

.panel {
    background: var(--surface);
    background-image: linear-gradient(180deg, #ffffff 0%, var(--surface-warm) 100%);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm), var(--shadow-md);
    padding: 28px 26px 22px;
}

.head {
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.head__eyebrow {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.head__title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.head__lede {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.45;
}

.main {
    flex: 0 0 auto;
}

.notice {
    margin-bottom: 20px;
    padding: 12px 14px 12px 16px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--notice-text);
    background: var(--notice-bg);
    border: 1px solid var(--notice-border);
    border-radius: var(--radius-input);
    border-left: 3px solid rgba(15, 23, 42, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.notice--error {
    border-left-color: #b91c1c;
    background: #fef2f2;
    color: #7f1d1d;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field {
    display: block;
    margin: 0;
}

.field__label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.field__input {
    display: block;
    width: 100%;
    margin: 0;
    padding: 11px 13px;
    font: inherit;
    font-size: 15px;
    color: var(--text);
    background: var(--input-bg);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-input);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.field__input::placeholder {
    color: var(--muted);
    opacity: 1;
}

.field__input:hover {
    background: var(--input-focus-bg);
    border-color: rgba(15, 23, 42, 0.14);
}

.field__input:focus {
    outline: none;
    background: var(--input-focus-bg);
    border-color: rgba(15, 23, 42, 0.35);
    box-shadow:
        inset 0 1px 2px rgba(15, 23, 42, 0.03),
        0 0 0 3px var(--focus-ring);
}

.field__control--password {
    position: relative;
    display: block;
}

.field__input--with-toggle {
    padding-right: 44px;
}

.field__reveal {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    margin: 0;
    padding: 0;
    color: var(--muted);
    background: transparent;
    border: none;
    border-radius: 0 var(--radius-input) var(--radius-input) 0;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.field__reveal:hover {
    color: var(--text);
    background: rgba(15, 23, 42, 0.04);
}

.field__reveal:focus {
    outline: none;
}

.field__reveal:focus-visible {
    outline: 2px solid #0c0c0c;
    outline-offset: -2px;
}

.field__reveal-icon {
    font-size: 22px;
    line-height: 1;
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}

.btn {
    margin-top: 6px;
    width: 100%;
    padding: 12px 16px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, #1a1a1a 0%, #0c0c0c 100%);
    border: 1px solid rgba(0, 0, 0, 0.35);
    border-radius: var(--radius-input);
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 4px 14px rgba(0, 0, 0, 0.16);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn:focus-visible {
    outline: 2px solid #0c0c0c;
    outline-offset: 2px;
}

.foot {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

.foot__extra {
    margin-top: 12px;
    font-size: 12px;
}

.foot__extra a {
    color: var(--muted);
    font-weight: 500;
}
