/* Загальні стилі для всіх екранів. */
:root {
    color-scheme: light;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #243247;
    background: #f3f5f8;
    line-height: 1.6;
}

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

body {
    margin: 0;
    min-width: 280px;
}

img,
video {
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

.container {
    width: 100%;
    margin-inline: auto;
}

.site-card {
    background: #fff;
    border: 1px solid #dce2ea;
    border-radius: 16px;
    overflow-wrap: anywhere;
}

h1 {
    margin: 0 0 16px;
    line-height: 1.2;
}

p {
    margin: 0 0 12px;
}

p:last-child {
    margin-bottom: 0;
}

.status {
    padding: 12px 16px;
    border-radius: 8px;
}

.status--success {
    color: #175c36;
    background: #edf8f0;
}

.status--error {
    color: #922727;
    background: #fff0f0;
}

.server-time {
    color: #59677a;
}

a {
    color: #185b51;
    text-underline-offset: 3px;
}

:focus-visible {
    outline: 3px solid #287a6c;
    outline-offset: 4px;
}

.brand {
    display: inline-block;
    color: #163d35;
    font-size: 28px;
    font-weight: 750;
    letter-spacing: -1px;
    text-decoration: none;
}

.brand span {
    display: block;
    color: #59677a;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: normal;
}

.auth-page {
    background: #eef3ef;
}

.auth-container {
    max-width: 560px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
}

.auth-card {
    border-radius: 12px;
}

.auth-description {
    margin-bottom: 28px;
}

.eyebrow {
    color: #41665b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.muted,
.auth-footer,
.login-consent {
    color: #59677a;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid #8b9792;
    border-radius: 6px;
    background: #fff;
    color: #243247;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.button:hover {
    background: #f2f6f3;
    border-color: #185b51;
}

.google-button {
    width: 100%;
}

.login-consent {
    margin-top: 20px;
    font-size: 13px;
}

.auth-footer {
    font-size: 12px;
}

.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.rules-container {
    max-width: 900px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
}
