/* Сторінка реєстрації / входу */
html:has(body.page-auth) {
    min-height: 100%;
}

.page-auth {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background-color: #0d0d0d;
}

/* Фон-картинка на body (разом з canvas-зірками) */
body.page-auth.page-auth--bg {
    background-image: url("image/auth/register-bg.png");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: min(96vw, 960px) auto;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    body.page-auth.page-auth--bg {
        background-size: min(130vw, 720px) auto;
        background-position: center bottom;
    }
}

.page-auth .header_logo_link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.auth-main {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 48px;
    width: 100%;
    box-sizing: border-box;
    flex-direction: column;
}

.auth-panel {
    width: 100%;
    max-width: 357px;
    margin: 0 auto;
    text-align: center;
}

.auth-title {
    font-family: Onest;
    font-weight: 800;
    font-size: 94.63px;
    leading-trim: NONE;
    line-height: 74.04px;
    letter-spacing: -7%;
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 28px;
}

@media (max-width: 768px) {
    .auth-title {
        font-family: Onest;
        font-weight: 800;
        font-size: 44.63px;
        leading-trim: NONE;
        line-height: 74.04px;
        letter-spacing: -7%;
        text-align: center;
        color: #fff;
        text-transform: uppercase;
        margin-bottom: 28px;
    }
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-field {
    width: 100%;
}

.auth-field input {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(18, 18, 18, 0.92);
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.auth-field input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.auth-field input:focus {
    border-color: rgba(46, 1, 247, 0.45);
    background: rgba(22, 22, 22, 0.98);
}

.auth-field--confirm[hidden] {
    display: none !important;
}

.auth-submit {
    margin-top: 8px;
    width: 100%;
    min-height: 52px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    display: block;
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(90deg, #2e01f7 0%, #4b3eff 51%, #493cfa 100%);
    box-shadow: 0 0 20px rgba(46, 1, 247, 0.35);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.auth-submit:hover:not(:disabled) {
    transform: scale(1.02);
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.auth-switch {
    margin-top: 22px;
    text-align: center;
    font-family: Inter, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
}

.auth-switch button {
    color: #fff;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-hint {
    margin-top: 10px;
    font-family: Inter, sans-serif;
    font-size: 12px;
    color: rgba(255, 200, 80, 0.9);
    min-height: 1.2em;
}
