*,::before,::after{box-sizing:border-box;margin:0;padding:0}

.auth-page{
  min-height:100vh;display:grid;grid-template-columns:1.15fr 1fr;
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  color:#e4e4e7;background:#08080a;
}

/* ── Sol panel ── */
.auth-hero{
  position:relative;display:flex;flex-direction:column;
  padding:48px 56px 40px;overflow:hidden;
  border-right:1px solid #1f1f23;
  background:#08080a;
}
.auth-hero::before{
  content:'';position:absolute;top:-120px;left:-80px;width:420px;height:420px;
  background:radial-gradient(circle,#ffffff08 0%,transparent 70%);
  pointer-events:none;
}
.auth-hero::after{
  content:'';position:absolute;bottom:-80px;right:-40px;width:320px;height:320px;
  background:radial-gradient(circle,#ffffff05 0%,transparent 70%);
  pointer-events:none;
}

.auth-brand{
  position:relative;z-index:1;font-size:16px;font-weight:600;
  color:#fafafa;letter-spacing:-.02em;
}
.auth-brand span{color:#71717a;font-weight:500}

.auth-hero-body{
  position:relative;z-index:1;flex:1;display:flex;flex-direction:column;
  justify-content:center;max-width:520px;padding:40px 0 32px;
}
.auth-hero-body h1{
  font-size:clamp(1.85rem,3.2vw,2.5rem);font-weight:650;line-height:1.2;
  letter-spacing:-.035em;color:#fafafa;margin-bottom:14px;
}
.auth-hero-body > p{
  font-size:15px;line-height:1.65;color:#a1a1aa;margin-bottom:36px;
}

.auth-features{
  display:grid;grid-template-columns:repeat(3,1fr);gap:12px;
}
.auth-feat{
  padding:16px 14px;border-radius:14px;min-width:0;
  background:#111113;border:1px solid #1f1f23;
  transition:border-color .2s;
}
.auth-feat:hover{border-color:#2a2a30}
.auth-feat-icon{
  width:32px;height:32px;border-radius:9px;margin-bottom:12px;
  display:flex;align-items:center;justify-content:center;
  background:#18181b;border:1px solid #27272a;color:#d4d4d8;
}
.auth-feat strong{
  display:block;font-size:13px;font-weight:600;color:#f4f4f5;
  margin-bottom:4px;
}
.auth-feat span{font-size:12px;line-height:1.45;color:#71717a}

.auth-hero-foot{
  position:relative;z-index:1;
  padding-top:24px;border-top:1px solid #1f1f23;
  font-size:12px;color:#52525b;
}

/* ── Sağ panel ── */
.auth-panel{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:48px 56px;background:#09090b;
}

.auth-mobile-brand{
  display:none;width:100%;max-width:400px;
  font-size:15px;font-weight:600;color:#fafafa;margin-bottom:28px;
}
.auth-mobile-brand span{color:#71717a;font-weight:500}

.auth-form-wrap{width:100%;max-width:400px}

.auth-tabs{
  display:flex;padding:4px;border-radius:12px;
  background:#111113;border:1px solid #1f1f23;margin-bottom:24px;
}
.auth-tab{
  flex:1;padding:10px 16px;border:none;border-radius:9px;
  font:inherit;font-size:13px;font-weight:500;color:#71717a;
  background:transparent;cursor:pointer;transition:all .18s;
}
.auth-tab:hover{color:#a1a1aa}
.auth-tab.active{
  background:#fafafa;color:#09090b;
  box-shadow:0 1px 3px #00000040;
}

.auth-card{
  padding:32px;border-radius:16px;
  background:#111113;border:1px solid #1f1f23;
  box-shadow:0 16px 48px #00000055;
}

.auth-view{display:none}
.auth-view.active{display:block;animation:authViewIn .22s ease}
html[data-auth="register"] #auth-view-login{display:none}
html[data-auth="register"] #auth-view-register{display:block}
@keyframes authViewIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

.auth-field{margin-bottom:18px}
.auth-field:last-of-type{margin-bottom:22px}
.auth-field label{
  display:block;font-size:12px;font-weight:500;color:#a1a1aa;
  margin-bottom:7px;letter-spacing:.01em;
}
.auth-field input{
  width:100%;padding:12px 14px;border-radius:10px;
  border:1px solid #27272a;background:#0c0c0e;color:#fafafa;
  font:inherit;font-size:14px;outline:none;
  transition:border-color .15s,background .15s;
}
.auth-field input::placeholder{color:#52525b}
.auth-field input:focus{
  border-color:#3f3f46;background:#09090b;
}

.auth-alert{
  display:none;margin-bottom:18px;padding:12px 14px;border-radius:10px;
  font-size:13px;line-height:1.5;
}
.auth-alert.error{display:block;background:#1a0f0f;border:1px solid #3f2020;color:#fca5a5}
.auth-alert.success{display:block;background:#0f1a14;border:1px solid #1f3f2a;color:#86efac}

.auth-submit{
  width:100%;padding:12px 16px;border:none;border-radius:10px;
  font:inherit;font-size:14px;font-weight:600;
  cursor:pointer;background:#fafafa;color:#09090b;
  transition:opacity .15s,transform .12s;
}
.auth-submit:hover{opacity:.92;transform:translateY(-1px)}
.auth-submit:active{transform:translateY(0)}
.auth-submit:disabled{opacity:.45;cursor:not-allowed;transform:none}

.auth-switch{
  margin-top:22px;text-align:center;font-size:13px;color:#71717a;
}
.auth-switch a{color:#d4d4d8;font-weight:500;text-decoration:none}
.auth-switch a:hover{color:#fafafa}

.auth-bot{margin-top:2px;margin-bottom:16px;padding-top:2px}
.auth-bot-label{font-size:12px;font-weight:500;color:#a1a1aa;margin-bottom:10px}
.auth-captcha-box{
  display:flex;align-items:center;gap:10px;margin-bottom:10px;
  padding:10px 12px;border-radius:10px;background:#0c0c0e;border:1px solid #27272a;
  min-height:76px;
}
.auth-captcha-box img{
  height:56px;width:220px;border-radius:6px;flex:1;object-fit:contain;
  background:#18181b;border:1px solid #27272a;display:block;
}
.auth-captcha-refresh{
  width:40px;height:40px;border-radius:8px;border:1px solid #27272a;
  background:#18181b;color:#a1a1aa;cursor:pointer;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.auth-captcha-refresh:hover{color:#fafafa;border-color:#3f3f46}
.auth-turnstile{min-height:65px;margin-bottom:4px}
.auth-localhost-hint{
  font-size:11px;color:#52525b;margin-bottom:12px;padding:8px 10px;
  border-radius:8px;background:#111113;border:1px dashed #27272a;
}

@media(max-width:960px){
  .auth-page{grid-template-columns:1fr}
  .auth-hero{display:none}
  .auth-panel{min-height:100vh;padding:32px 20px 40px}
  .auth-mobile-brand{display:block}
  .auth-card{padding:24px 20px}
}
