@font-face {
    font-family: 'Inter Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
    --gray-50: oklch(0.985 0 0);
    --gray-200: oklch(0.92 0.004 286.32);
    --gray-300: oklch(0.871 0.006 286.286);
    --gray-400: oklch(0.705 0.015 286.067);
    --gray-500: oklch(0.552 0.016 285.938);
    --gray-600: oklch(0.442 0.017 285.786);
    --gray-950: oklch(0.141 0.005 285.823);
    --primary-500: oklch(0.543 0.114 234.606);
    --primary-600: oklch(0.464 0.097 234.19);
    --primary-700: oklch(0.385 0.078 232.302);
    --danger-600: oklch(0.577 0.245 27.325);
    --white: #ffffff;
    --radius: 0.5rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-input: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter Variable', system-ui, -apple-system, "Segoe UI", sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-950);
    font-size: 1rem;
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.layout {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.main {
    width: 100%;
    max-width: 32rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: var(--white);
    padding: 3rem;
    border-radius: 0.75rem;
    box-shadow:
        0 1px 3px 0 rgb(0 0 0 / 0.06),
        0 1px 2px -1px rgb(0 0 0 / 0.04),
        inset 0 0 0 1px color-mix(in oklab, var(--gray-950) 5%, transparent);
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.logo {
    height: 1.5rem;
    width: auto;
    display: block;
}

.heading {
    margin: 0;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--gray-950);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.label {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: var(--gray-950);
}

.required {
    color: var(--danger-600);
    font-weight: 500;
    margin-left: 0.125rem;
}

.input-wrap {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-input);
    box-shadow:
        var(--shadow-input),
        inset 0 0 0 1px color-mix(in oklab, var(--gray-950) 10%, transparent);
    transition: box-shadow 75ms ease;
}

.input-wrap:focus-within {
    box-shadow:
        var(--shadow-input),
        inset 0 0 0 2px var(--primary-600);
}

.input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0.5rem 0.75rem;
    font: inherit;
    font-size: 0.875rem;
    line-height: 1.5rem;
    color: var(--gray-950);
    border-radius: var(--radius);
}

.input::placeholder {
    color: var(--gray-400);
}

.field-checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.625rem;
}

.label-inline {
    margin: 0;
    cursor: pointer;
}

.checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 1rem;
    height: 1rem;
    margin: 0;
    background-color: var(--white);
    border-radius: 0.1875rem;
    box-shadow:
        var(--shadow-sm),
        inset 0 0 0 1px color-mix(in oklab, var(--gray-950) 15%, transparent);
    cursor: pointer;
    display: inline-grid;
    place-content: center;
    transition: background-color 75ms ease, box-shadow 75ms ease;
}

.checkbox:checked {
    background-color: var(--primary-600);
    box-shadow: var(--shadow-sm);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'><path d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 1 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.875rem 0.875rem;
}

.checkbox:focus-visible {
    outline: 2px solid var(--primary-600);
    outline-offset: 2px;
}

.btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    font: inherit;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: var(--white);
    background-color: var(--primary-600);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: background-color 75ms ease;
}

.btn:hover {
    background-color: var(--primary-500);
}

.btn:active {
    background-color: var(--primary-700);
}

.btn:focus-visible {
    outline: 2px solid var(--primary-600);
    outline-offset: 2px;
}
