/* Согласия на auth-формах (регистрация, досогласование) */
.auth-consents {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 14px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.18);
}

.auth-consents--has-error {
    border-color: rgba(255, 90, 110, 0.55);
    box-shadow: 0 0 0 1px rgba(255, 90, 110, 0.2);
}

.auth-consents__hint {
    margin: 0 0 4px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
}

.auth-consent-item--optional .auth-consent-item__text {
    color: var(--text-secondary);
}

.auth-consent-item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 6px;
    align-items: start;
    padding: 10px 10px 10px 8px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.auth-consent-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.auth-consent-item input[type="checkbox"] {
    grid-row: 1 / span 2;
    margin-top: 4px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--accent-gold);
    cursor: pointer;
}

.auth-consent-item__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.auth-consent-item__text {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.auth-consent-item__link-line {
    display: block;
    font-size: 13px;
    line-height: 1.4;
}

.auth-consent-item__link-line a {
    color: var(--accent-gold);
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}

.auth-consent-item__link-line a:hover {
    color: var(--accent-gold-hover);
}

.auth-consent-item__error {
    grid-column: 2;
    font-size: 12px;
    line-height: 1.35;
    color: #ff9aaa;
}

.auth-consent-item__error[hidden] {
    display: none !important;
}

.auth-consent-item--invalid {
    border-color: rgba(255, 90, 110, 0.55);
    background: rgba(202, 52, 80, 0.12);
}

.auth-consent-item--invalid .auth-consent-item__text {
    color: #ffd8df;
}

.auth-consent-item--invalid input[type="checkbox"] {
    outline: 2px solid rgba(255, 90, 110, 0.65);
    outline-offset: 2px;
}

.auth-submit-slot {
    display: block;
    min-width: 0;
}

.auth-submit-slot button[disabled] {
    pointer-events: none;
}

.auth-submit-slot:has(button[disabled]) {
    cursor: not-allowed;
}
