/* PolyTOE — кнопки, поля, панели, сообщения. Перенос из прототипа. */
button {
    min-height: 44px;
    border: 1px solid rgba(166, 218, 245, 0.18);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text);
    background: linear-gradient(180deg, rgba(32, 67, 86, 0.96), rgba(16, 38, 50, 0.96));
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

button:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: linear-gradient(180deg, rgba(42, 88, 111, 0.98), rgba(19, 50, 64, 0.98));
}

button.primary {
    color: #061118;
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-green));
    font-weight: 800;
}

button.secondary {
    background: rgba(6, 17, 24, 0.52);
}

input,
select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(166, 218, 245, 0.18);
    border-radius: 8px;
    padding: 11px 12px;
    color: var(--text);
    background: rgba(4, 14, 20, 0.72);
    outline: none;
}

input:focus,
select:focus {
    border-color: rgba(85, 200, 255, 0.76);
    box-shadow: 0 0 0 4px rgba(85, 200, 255, 0.12);
}

/* Автозаполнение браузера не должно ломать тёмную тему */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text);
    caret-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px rgba(4, 14, 20, 0.72) inset;
    box-shadow: 0 0 0 1000px rgba(4, 14, 20, 0.72) inset;
    transition: background-color 9999s ease-in-out 0s;
}

label {
    color: #d9effb;
    font-weight: 700;
    font-size: 0.92rem;
}

.registration-panel {
    background: linear-gradient(180deg, rgba(10, 24, 30, 0.92), rgba(8, 21, 27, 0.98));
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.registration-field {
    display: grid;
    gap: 6px;
}

.registration-field.full {
    grid-column: 1 / -1;
}

.registration-field label {
    color: #dceff8;
    font-weight: 700;
    font-size: 0.92rem;
}

.registration-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.registration-actions .primary {
    min-width: 220px;
}

.centered-action {
    justify-content: center;
}

.registration-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(177, 223, 241, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.registration-switch button {
    min-height: 40px;
    border-radius: 10px;
}

.registration-switch button.active {
    color: #061014;
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-green));
    font-weight: 800;
}

.auth-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--muted);
}

.auth-meta-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 600;
    cursor: pointer;
}

.auth-meta-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--accent-green);
    outline: none;
    box-shadow: none;
}

.auth-meta-row input[type="checkbox"]:focus,
.auth-meta-row input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: none;
}

.auth-meta-link {
    min-height: auto;
    padding: 0;
    border: none;
    outline: none;
    box-shadow: none;
    background: none;
    color: #d8eff6;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    transform: none;
}

.auth-meta-link:hover {
    transform: none;
    border-color: transparent;
    background: none;
    text-decoration: underline;
}

.auth-meta-link:active,
.auth-meta-link:focus,
.auth-meta-link:focus-visible {
    outline: none;
    box-shadow: none;
    background: none;
    transform: none;
}

.auth-primary-action .primary {
    width: 100%;
    justify-content: center;
}

.dual-action-row button {
    flex: 1 1 220px;
    justify-content: center;
}

.verification-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.verification-email {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(177, 223, 241, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #dceff8;
    font-weight: 700;
}

.verification-code-input {
    letter-spacing: 0.35em;
    text-align: center;
    font-size: 1.2rem;
}

.registration-message {
    min-height: 46px;
    display: none;
    align-items: center;
    border: 1px solid rgba(126, 255, 199, 0.24);
    border-radius: 12px;
    padding: 10px 12px;
    color: #c8ffe2;
    background: rgba(126, 255, 199, 0.1);
}

.registration-message.visible {
    display: flex;
}

.registration-message.error {
    border-color: rgba(255, 122, 89, 0.3);
    color: #ffc6ba;
    background: rgba(255, 122, 89, 0.1);
}

.registration-message.compact {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    justify-content: center;
    text-align: center;
}

.hero-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0;
    min-height: 32px;
    border: 1px solid rgba(104, 186, 110, 0.28);
    border-radius: 999px;
    padding: 6px 12px;
    background: linear-gradient(180deg, rgba(17, 44, 41, 0.94), rgba(11, 29, 28, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-kicker-poly {
    color: #d5e9ee;
    font-weight: 600;
}

.hero-kicker-toe {
    color: #68ba6e;
    font-weight: 900;
    text-shadow: 0 0 14px rgba(104, 186, 110, 0.16);
}
