.page-uye { background: var(--ink-50); }

.uye {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
    background:
        radial-gradient(700px 360px at 90% -10%, rgba(230, 33, 41, .1), transparent 60%),
        radial-gradient(600px 340px at -10% 110%, rgba(30, 63, 166, .12), transparent 60%),
        var(--ink-50);
}
.uye__inner {
    display: flex;
    justify-content: center;
}
.uye__card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 20px 48px -18px rgba(15, 23, 42, .18);
    padding: clamp(1.5rem, 4vw, 2.6rem);
}

.uye__head { text-align: center; margin-bottom: 1.6rem; }
.uye__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .32rem .8rem;
    border-radius: 999px;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: .85rem;
}
.uye__title {
    margin: 0 0 .45rem;
    font-size: clamp(1.6rem, 3.4vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ink-900, #0a1747);
}
.uye__lead {
    margin: 0;
    color: var(--ink-600);
    font-size: .95rem;
    line-height: 1.55;
}

.uye__alert {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .9rem 1rem;
    margin-bottom: 1.3rem;
    font-size: .9rem;
    line-height: 1.45;
    border: 1px solid transparent;
}
.uye__alert .icon { width: 22px; height: 22px; flex-shrink: 0; margin-top: .05rem; }
.uye__alert strong { display: block; margin-bottom: .15rem; }
.uye__alert--success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}
.uye__alert--success a { color: #047857; font-weight: 700; }
.uye__alert--error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.uye-form { display: flex; flex-direction: column; gap: 1.05rem; }
.uye-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.uye-field { display: flex; flex-direction: column; gap: .35rem; }
.uye-field__label {
    font-size: .82rem;
    font-weight: 700;
    color: var(--ink-700);
    letter-spacing: .01em;
}
.uye-field__input {
    width: 100%;
    height: 46px;
    padding: 0 .85rem;
    border: 1px solid var(--ink-200);
    border-radius: 0;
    background: #fff;
    color: var(--ink-800);
    font-size: .95rem;
    font-family: inherit;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.uye-field__input::placeholder { color: var(--ink-400); }
.uye-field__input:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(30, 63, 166, .14);
}
.uye-field__input.is-invalid {
    border-color: var(--danger, #dc2626);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}
.uye-field__error {
    font-size: .8rem;
    color: var(--danger, #dc2626);
    font-weight: 600;
}
.uye-field__forgot {
    align-self: flex-end;
    margin-top: .1rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--brand-700);
}
.uye-field__forgot:hover { text-decoration: underline; }

.uye-captcha {
    display: grid;
    grid-template-columns: 150px auto 1fr;
    align-items: center;
    gap: .6rem;
}
.uye-captcha__img {
    display: block;
    width: 150px;
    height: 50px;
    border: 1px solid var(--ink-200);
    background: #f5f7fb;
    user-select: none;
}
.uye-captcha__refresh {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--ink-200);
    background: #fff;
    color: var(--brand-600);
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.uye-captcha__refresh:hover {
    border-color: var(--brand-400);
    background: var(--brand-50);
}
.uye-captcha__input {
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 700;
}

.uye-pass { position: relative; }
.uye-pass .uye-field__input { padding-right: 3rem; }
.uye-pass__toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--ink-400);
    cursor: pointer;
    transition: color .15s ease;
}
.uye-pass__toggle:hover { color: var(--brand-600); }
.uye-pass__toggle.is-on { color: var(--brand-600); }

.uye-form__submit {
    width: 100%;
    justify-content: center;
    margin-top: .3rem;
    border-radius: 0;
}

.uye__switch {
    margin: 1.35rem 0 0;
    text-align: center;
    font-size: .9rem;
    color: var(--ink-600);
}
.uye__switch a { color: var(--brand-700); font-weight: 700; }
.uye__switch a:hover { text-decoration: underline; }
.uye-form__note {
    margin: 0;
    font-size: .78rem;
    color: var(--ink-500);
    text-align: center;
    line-height: 1.5;
}

.uye-field--turnstile {
    align-items: flex-start;
}
.uye-field--turnstile .cf-turnstile {
    min-height: 65px;
}
    padding: 1rem 1.05rem;
    border: 1px solid var(--ink-200, #e2e8f0);
    border-radius: 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}
.uye-consent__legend {
    padding: 0 .25rem;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-600);
}
.uye-check {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-size: .86rem;
    line-height: 1.45;
    color: var(--ink-700);
    cursor: pointer;
}
.uye-check input {
    margin-top: .2rem;
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
    accent-color: var(--brand-600, #1e3fa6);
}
.uye-check a {
    color: var(--brand-700, #1e3fa6);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.uye-check.is-invalid { color: #b91c1c; }
.uye-check--inline {
    align-items: center;
    font-weight: 600;
}
.uye-check--inline input { margin-top: 0; }
.uye-consent__channels {
    margin-left: 1.7rem;
    padding: .75rem .9rem;
    border-radius: 10px;
    background: var(--ink-50, #f8fafc);
    border: 1px solid var(--ink-100, #f1f5f9);
}
.uye-consent__channels.is-disabled {
    opacity: .55;
    pointer-events: none;
}
.uye-consent__channels-title {
    margin: 0 0 .55rem;
    font-size: .78rem;
    font-weight: 800;
    color: var(--ink-600);
}
.uye-consent__channel-list {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
}

@media (max-width: 480px) {
    .uye-captcha {
        grid-template-columns: 150px auto;
        grid-template-areas:
            "img refresh"
            "input input";
    }
    .uye-captcha__img { grid-area: img; }
    .uye-captcha__refresh { grid-area: refresh; }
    .uye-captcha__input { grid-area: input; }
    .uye-consent__channels { margin-left: 0; }
}
