:root {
    color-scheme: dark;
}

html {
    background: #172c24;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
}

.auth-form label:not(.checkbox-row) {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.auth-form input:not([type="checkbox"]):not([type="hidden"]),
.auth-form select,
.auth-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.85rem 1rem;
    color: #fff;
    outline: none;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.auth-form input:not([type="checkbox"]):focus,
.auth-form select:focus,
.auth-form textarea:focus {
    border-color: rgba(232, 212, 182, 0.75);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(232, 212, 182, 0.14);
}

.auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
    accent-color: #e8d4b6;
}

.field-error {
    margin-top: 0.45rem;
    font-size: 0.8rem;
    color: #fecaca;
}

.field-help {
    margin-top: 0.45rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.auth-primary-button,
.auth-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 0.85rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    transition: transform 160ms ease, background-color 160ms ease;
}

.auth-primary-button {
    width: 100%;
    background: #fff;
    color: #172c24;
}

.auth-secondary-button {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.auth-primary-button:hover,
.auth-secondary-button:hover {
    transform: translateY(-1px);
}

.auth-primary-button:hover {
    background: #f5f8f6;
}

.auth-secondary-button:hover {
    background: rgba(255, 255, 255, 0.14);
}

.hero-background {
    background-position: 62% center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1.01);
}

.about-background {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(2px);
    transform: scale(1.02);
}

.hero-copy {
    animation: hero-enter 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-enter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .hero-background {
        background-position: 68% center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-copy {
        animation: none;
    }
}
