:root{
  --bg:#050507;
  --fg:#fafafa;
  --muted:rgba(255,255,255,.55);
  --line:rgba(255,255,255,.10);

  --accent:#7c5cfc;
  --accent2:#a78bfa;
  --accent3:#c4b5fd;

  /* legacy names used by existing classes */
  --green:var(--accent);
  --green2:var(--accent2);

  --bad:#ff4d4d;
  --bad2:#ff7a7a;

  --shadow: 0 20px 60px rgba(0,0,0,.45);
}


*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:'Outfit',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--fg);
  background:var(--bg);
  background-image:
    radial-gradient(ellipse 1200px 800px at 50% -10%, rgba(124,92,252,.22) 0%, transparent 60%),
    radial-gradient(ellipse 800px 600px at 10% 60%, rgba(124,92,252,.10) 0%, transparent 55%),
    radial-gradient(ellipse 700px 500px at 90% 80%, rgba(167,139,250,.08) 0%, transparent 55%);
  animation: pageIn .6s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes pageIn{
  from{opacity:0; transform:translateY(10px) scale(.995); filter:blur(6px)}
  to{opacity:1; transform:translateY(0) scale(1); filter:blur(0)}
}

@keyframes cardIn{
  from{opacity:0; transform:translateY(18px) scale(.98)}
  to{opacity:1; transform:translateY(0) scale(1)}
}

@keyframes shake{
  0%,100%{transform:translateX(0)}
  20%{transform:translateX(-5px)}
  40%{transform:translateX(5px)}
  60%{transform:translateX(-4px)}
  80%{transform:translateX(4px)}
}

/* Layout */
.center{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

/* Card */
.card{
  width:min(420px, calc(100% - 24px));
  padding:34px 28px 26px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  animation: cardIn .45s ease both;
}

.logo{
  margin:0;
  text-align:center;
  color:#bfffe9;
  font-size:40px;
  font-weight:950;
  letter-spacing:-.8px;
}

.title{margin:12px 0 4px; text-align:center; font-weight:900}
.desc{margin:0 0 18px; text-align:center; color:rgba(255,255,255,.6)}

/* Form */
.form{margin-top:6px}

/* Field system (JS uyumlu) */
.field{margin:14px 0}
.field label{
  display:block;
  font-size:12px;
  color:rgba(255,255,255,.65);
  margin:0 0 8px;
}

.control{
  position:relative;
  display:flex;
  align-items:center;
}

.control input{
  width:100%;
  padding:12px 46px 12px 14px; /* sağda mark alanı */
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.35);
  color:#fff;
  outline:none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.field.is-ok .control input{
  border-color: rgba(124,92,252,.40);
  box-shadow: 0 0 22px rgba(124,92,252,.12);
}
.field.is-bad .control input{
  border-color: rgba(255,77,77,.45);
  box-shadow: 0 0 22px rgba(255,77,77,.10);
}

.mark{
  position:absolute;
  right:12px;
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
}

@keyframes pop{
  from{opacity:.2; transform:scale(.75)}
  to{opacity:1; transform:scale(1)}
}

.mark__bubble{
  width:22px;
  height:22px;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-weight:950;
  font-size:13px;
  animation: pop .22s ease both;
}

.mark__bubble.ok{
  background: rgba(124,92,252,.16);
  border:1px solid rgba(124,92,252,.35);
  color: var(--green2);
}
.mark__bubble.bad{
  background: rgba(255,77,77,.16);
  border:1px solid rgba(255,77,77,.35);
  color: var(--bad2);
}

.hint{
  min-height:16px;
  margin-top:8px;
  font-size:12px;
  color:rgba(255,255,255,.50);
}
.field.is-ok .hint{ color: rgba(124,92,252,.90); }
.field.is-bad .hint{ color: rgba(255,77,77,.90); }

/* Between row */
.between{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:10px;
}
.small{font-size:12px}

/* Links */
.accent{color:var(--green2); text-decoration:none}
.accent:hover{text-decoration:underline}

/* Button */
.btn{
  width:100%;
  margin-top:18px;
  padding:13px 14px;
  border-radius:12px;
  border:0;
  font-weight:950;
  background: rgba(255,255,255,.10);
  color:rgba(255,255,255,.75);
  transition: transform .15s ease, filter .15s ease, background .15s ease;
  cursor:pointer;
}
.btn--active{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#0b081a;
  box-shadow:0 0 30px rgba(124,92,252,.22);
}
.btn:active{transform:scale(.99)}
.btn:disabled{opacity:.55; cursor:not-allowed}

/* Footer */
.foot{
  margin-top:14px;
  text-align:center;
  color:rgba(255,255,255,.60);
  font-size:13px;
}

/* Error */
.err{
  padding:10px 12px;
  border-radius:10px;
  background:rgba(255,0,0,.08);
  border:1px solid rgba(255,0,0,.18);
  margin-bottom:12px;
}

/* Shake */
.shake{ animation: shake .35s ease both; }

/* Overlay (3 sn) */
.overlay{
  position:fixed;
  inset:0;
  display:none;
  place-items:center;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  z-index:999;
}
.overlay--show{display:grid; animation: fadeOverlay .25s ease both;}
@keyframes fadeOverlay{ from{opacity:0} to{opacity:1} }

.overlay__card{
  width:min(360px, calc(100% - 36px));
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.45);
  box-shadow: var(--shadow);
  padding:22px 18px;
  text-align:center;
  animation: cardIn .45s ease both;
}

.overlay__title{
  font-weight:950;
  font-size:18px;
  margin-top:10px;
}
.overlay__sub{
  color:rgba(255,255,255,.60);
  margin-top:6px;
  font-size:13px;
}

.spinner{
  width:34px;
  height:34px;
  border-radius:999px;
  border:3px solid rgba(255,255,255,.18);
  border-top-color: var(--green2);
  margin:0 auto;
  animation: spin 1s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg);} }

@media (prefers-reduced-motion: reduce){
  *{animation:none!important; transition:none!important}
}
