/* Üye giriş / kayıt sayfaları — yalnızca giris.php ve uye-ol.php yükler. */
.uyx {
    --uyx-red: var(--ht-red, #dc2626);
    --uyx-red-d: var(--ht-red-d, #b91c1c);
    --uyx-navy: #122d4a;
    --uyx-navy-d: #0b1d31;
    --uyx-ink: var(--ht-ink, #0f172a);
    --uyx-ink2: var(--ht-ink2, #334155);
    --uyx-mute: var(--ht-mute, #64748b);
    --uyx-line: var(--ht-line, #e5e7eb);
    --uyx-ok: #059669;
    --uyx-warn: #d97706;
    --uyx-ease: var(--ht-ease, cubic-bezier(.2,.7,.2,1));
    position: relative;
    padding: 40px 16px 56px;
    isolation: isolate;
    overflow: hidden;
    overflow: clip; /* odak kaydırması arka plan ışıklarına kaymasın */
}
.uyx *, .uyx *::before, .uyx *::after { box-sizing: border-box; }

/* Arka plan: yavaş hareket eden marka renkli ışıklar */
.uyx::before, .uyx::after {
    content: ""; position: absolute; z-index: -1; border-radius: 50%;
    filter: blur(70px); opacity: .18; pointer-events: none;
    animation: uyx-float 18s ease-in-out infinite alternate;
}
.uyx::before { width: 420px; height: 420px; background: var(--uyx-red); top: -140px; left: -120px; }
.uyx::after  { width: 480px; height: 480px; background: var(--uyx-navy); bottom: -200px; right: -160px; animation-delay: -9s; }
@keyframes uyx-float {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.12); }
}

.uyx-shell {
    max-width: 960px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1.08fr;
    background: #fff; border-radius: 20px; overflow: hidden;
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 24px 60px -18px rgba(18,45,74,.28);
    animation: uyx-rise .5s var(--uyx-ease) both;
}
@keyframes uyx-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Sol marka paneli */
.uyx-brand {
    position: relative; color: #fff; padding: 40px 36px;
    background: linear-gradient(135deg, var(--uyx-navy-d), var(--uyx-navy) 45%, #1d3f66 70%, var(--uyx-red-d));
    background-size: 260% 260%;
    animation: uyx-grad 16s ease infinite;
    display: flex; flex-direction: column; gap: 22px; overflow: hidden;
}
@keyframes uyx-grad { 0% { background-position: 0% 30%; } 50% { background-position: 100% 70%; } 100% { background-position: 0% 30%; } }
.uyx-brand::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: linear-gradient(180deg, transparent, #000 60%);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%);
}
.uyx-badge {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
    padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px);
}
.uyx-badge .uyx-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #f87171;
    box-shadow: 0 0 0 0 rgba(248,113,113,.7); animation: uyx-pulse 2s infinite;
}
@keyframes uyx-pulse { 0% { box-shadow: 0 0 0 0 rgba(248,113,113,.7); } 70% { box-shadow: 0 0 0 8px rgba(248,113,113,0); } 100% { box-shadow: 0 0 0 0 rgba(248,113,113,0); } }
.uyx-brand h2 {
    font-family: "Inter", system-ui, sans-serif; font-size: 26px; line-height: 1.2;
    font-weight: 800; letter-spacing: -.5px; margin: 0; color: #fff;
}
.uyx-brand h2 span { color: #fca5a5; }
.uyx-brand p { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.8); }
.uyx-perks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.uyx-perks li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,.92); }
.uyx-perks i {
    flex: 0 0 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
    background: rgba(255,255,255,.12); color: #fff; font-size: 13px;
}
.uyx-perks strong { display: block; color: #fff; font-size: 13.5px; }
.uyx-secure {
    margin-top: auto; position: relative; z-index: 1;
    display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.7);
}

/* Sağ form paneli */
.uyx-main { padding: 40px 40px 32px; }
.uyx-head h1 {
    font-family: "Inter", system-ui, sans-serif; font-size: 26px; font-weight: 800;
    color: var(--uyx-ink); margin: 0 0 6px; letter-spacing: -.5px;
}
.uyx-head h1::after {
    content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; margin-top: 10px;
    background: linear-gradient(90deg, var(--uyx-red), #f87171, var(--uyx-red));
    background-size: 200% 100%; animation: uyx-bar 3s linear infinite;
}
@keyframes uyx-bar { to { background-position: -200% 0; } }
.uyx-head p { font-size: 14px; color: var(--uyx-mute); margin: 12px 0 22px; line-height: 1.55; }

.uyx-alert {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; margin-bottom: 18px;
    animation: uyx-shake .4s var(--uyx-ease);
}
.uyx-alert i { margin-top: 2px; }
.uyx-alert--err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.uyx-alert--ok  { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; animation: none; }
@keyframes uyx-shake { 0%,100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.uyx-form { display: flex; flex-direction: column; gap: 16px; }
.uyx-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.uyx-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.uyx-label {
    font-size: 12.5px; font-weight: 700; color: var(--uyx-ink2); letter-spacing: .1px;
    display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
}
.uyx-label em { font-style: normal; font-weight: 500; color: #94a3b8; }
.uyx-label a { font-weight: 600; color: var(--uyx-red); text-decoration: none; font-size: 12px; }
.uyx-label a:hover { text-decoration: underline; }
.uyx-ctl { position: relative; }
.uyx-ctl > i.uyx-ico {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: 14px; pointer-events: none; transition: color .2s ease;
}
.uyx-ctl input {
    width: 100%; height: 48px; padding: 0 14px 0 42px;
    border: 1.5px solid var(--uyx-line); border-radius: 12px;
    background: #f8fafc; color: var(--uyx-ink); font: inherit; font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
    -webkit-appearance: none; appearance: none;
}
.uyx-ctl input::placeholder { color: #a3aab6; }
.uyx-ctl input:hover { border-color: #cbd5e1; }
.uyx-ctl input:focus {
    outline: 0; background: #fff; border-color: var(--uyx-navy);
    box-shadow: 0 0 0 4px rgba(18,45,74,.12);
}
.uyx-ctl:focus-within > i.uyx-ico { color: var(--uyx-navy); }
.uyx-ctl.has-toggle input { padding-right: 48px; }
.uyx-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent;
    color: #64748b; cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s;
}
.uyx-toggle:hover { background: #eef2f7; color: var(--uyx-navy); }
.uyx-toggle:focus-visible { outline: 2px solid var(--uyx-navy); outline-offset: 1px; }

.uyx-field.is-invalid .uyx-ctl input { border-color: var(--uyx-red); background: #fff; }
.uyx-field.is-invalid .uyx-ctl input:focus { box-shadow: 0 0 0 4px rgba(220,38,38,.12); }
.uyx-field.is-invalid .uyx-ico { color: var(--uyx-red); }
.uyx-field.is-valid .uyx-ctl input { border-color: #10b981; }
.uyx-msg { font-size: 12.5px; color: var(--uyx-red); min-height: 0; line-height: 1.4; display: none; }
.uyx-field.is-invalid .uyx-msg { display: flex; gap: 6px; align-items: center; animation: uyx-in .2s ease; }
.uyx-hint { font-size: 12px; color: var(--uyx-mute); line-height: 1.4; }
@keyframes uyx-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* Şifre gücü */
.uyx-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 2px; }
.uyx-meter span { display: block; height: 5px; border-radius: 4px; background: #e2e8f0; transition: background-color .3s ease; }
.uyx-meter[data-s="1"] span:nth-child(-n+1) { background: var(--uyx-red); }
.uyx-meter[data-s="2"] span:nth-child(-n+2) { background: var(--uyx-warn); }
.uyx-meter[data-s="3"] span:nth-child(-n+3) { background: #65a30d; }
.uyx-meter[data-s="4"] span { background: var(--uyx-ok); }
.uyx-meter-txt { font-size: 12px; color: var(--uyx-mute); display: flex; justify-content: space-between; gap: 8px; }
.uyx-meter-txt b { font-weight: 700; }

/* Matematik sorusu */
.uyx-captcha {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    border: 1.5px dashed #cbd5e1; border-radius: 12px; background: #f8fafc;
}
.uyx-captcha-q {
    flex: 0 0 auto; font-family: "Inter", system-ui, sans-serif; font-weight: 800; font-size: 17px;
    color: var(--uyx-navy); letter-spacing: .5px; white-space: nowrap;
}
.uyx-captcha .uyx-ctl { flex: 1 1 auto; }
.uyx-captcha .uyx-ctl input { height: 42px; padding-left: 14px; background: #fff; }

.uyx-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--uyx-ink2); line-height: 1.5; cursor: pointer; }
.uyx-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--uyx-navy); flex: 0 0 auto; }

/* Gönder butonu */
.uyx-btn {
    position: relative; height: 50px; border: 0; border-radius: 12px; cursor: pointer;
    font: inherit; font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .2px;
    background: linear-gradient(135deg, var(--uyx-red), var(--uyx-red-d));
    box-shadow: 0 10px 22px -10px rgba(220,38,38,.7);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    transition: transform .15s var(--uyx-ease), box-shadow .2s ease, filter .2s ease;
    overflow: hidden;
    overflow: clip;
}
.uyx-btn::after {
    content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
    transform: skewX(-20deg); transition: left .6s ease;
}
.uyx-btn:hover { filter: brightness(1.05); box-shadow: 0 14px 28px -12px rgba(220,38,38,.8); }
.uyx-btn:hover::after { left: 120%; }
.uyx-btn:active { transform: translateY(1px) scale(.995); }
.uyx-btn:focus-visible { outline: 3px solid rgba(18,45,74,.45); outline-offset: 2px; }
.uyx-btn .uyx-spin {
    display: none; width: 18px; height: 18px; border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: uyx-rot .7s linear infinite;
}
.uyx-btn.is-loading { pointer-events: none; filter: saturate(.85); }
.uyx-btn.is-loading .uyx-spin { display: inline-block; }
.uyx-btn.is-loading .uyx-btn-ico { display: none; }
@keyframes uyx-rot { to { transform: rotate(360deg); } }

.uyx-foot {
    margin-top: 22px; padding-top: 18px; border-top: 1px solid #f1f5f9;
    text-align: center; font-size: 14px; color: var(--uyx-mute);
}
.uyx-foot a { color: var(--uyx-navy); font-weight: 700; text-decoration: none; border-bottom: 2px solid rgba(220,38,38,.35); transition: border-color .2s; }
.uyx-foot a:hover { border-color: var(--uyx-red); }

/* Tuzak alan: ekran dışı */
.uyx-hp { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* Mobil */
@media (max-width: 820px) {
    .uyx { padding: 20px 16px 40px; }
    .uyx-shell { grid-template-columns: 1fr; border-radius: 18px; }
    .uyx-brand { padding: 22px 22px 20px; gap: 10px; }
    .uyx-brand h2 { font-size: 20px; }
    .uyx-brand p { font-size: 13px; }
    .uyx-perks, .uyx-secure { display: none; }
    .uyx-main { padding: 26px 20px 22px; }
    .uyx-head h1 { font-size: 23px; }
}
@media (max-width: 480px) {
    .uyx-row2 { grid-template-columns: 1fr; }
    .uyx-captcha { flex-wrap: wrap; }
    .uyx-meter-txt span + span { display: none; }
    .uyx::before { width: 260px; height: 260px; }
    .uyx::after { width: 300px; height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
    .uyx *, .uyx::before, .uyx::after { animation: none !important; transition: none !important; }
}
.uyx-check a { color: var(--uyx-navy); font-weight: 600; }
.uyx-check a:hover { color: var(--uyx-red); }
