/* Giriş / üye ol / doğrulama / hesabım sayfalarının ortak stili */

/* Yazı tipleri: metin için Inter, başlık ve rakamlar için Space Grotesk (ikisi de Türkçe karakterleri destekler) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');
@import url('/css/polish.css');
@import url('/css/features.css');

@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root {
  --bg: #000;
  --panel: #08080b;
  --field: #0e0e13;
  --line: #22222b;
  --text: #f2f2f5;
  --mute: #8b8b98;
  --err: #ff4d6d;
  --ok: #2dffa0;
  --rgb: #ff004c, #ff8a00, #ffe600, #00ff85, #00e1ff, #3d5afe, #c800ff, #ff004c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { height: 100%; }
body {
  margin: 0; min-height: 100%;
  background: var(--bg); color: var(--text);
  font: 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
  display: grid; place-items: center;
  padding: 32px 16px;
  overflow-x: hidden;
}

/* Arka planda yavaşça dönen soluk neon hare */
body::before {
  content: ""; position: fixed; z-index: -1;
  width: 130vmax; height: 130vmax; left: 50%; top: 50%;
  translate: -50% -50%;
  background: conic-gradient(var(--rgb));
  -webkit-mask: radial-gradient(closest-side, transparent 30%, #000 34%, transparent 46%);
          mask: radial-gradient(closest-side, transparent 30%, #000 34%, transparent 46%);
  filter: blur(70px); opacity: .22;
  animation: spin 40s linear infinite;
}

.wrap { width: min(100%, 420px); }
.wrap.wide { width: min(100%, 620px); }

.brand { display: grid; place-items: center; margin-bottom: 22px; }
.brand a { display: block; width: 92px; border-radius: 12px; }
.brand img {
  display: block; width: 100%;
  filter: drop-shadow(0 0 8px rgba(0, 225, 255, .7)) drop-shadow(0 0 20px rgba(200, 0, 255, .5));
  transition: scale .3s;
}
.brand a:hover img { scale: 1.08; }

/* Kenarlığı dönen RGB çizgi olan kart */
.card {
  position: relative;
  border-radius: 20px;
  padding: 1.5px;
  background: conic-gradient(from var(--a), var(--rgb));
  animation: turn 8s linear infinite;
  box-shadow: 0 0 60px -18px rgba(120, 80, 255, .55);
}
.card > .inner {
  border-radius: 18.5px;
  background: var(--panel);
  padding: 30px 28px 26px;
}

h1 { font-size: 22px; font-weight: 650; margin: 0 0 4px; letter-spacing: .2px; }
.sub { color: var(--mute); font-size: 14.5px; margin: 0 0 22px; }
.sub b { color: var(--text); font-weight: 600; word-break: break-all; }

form { display: grid; gap: 14px; }
.grid2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 540px) { .grid2 { grid-template-columns: 1fr; } .card > .inner { padding: 26px 20px 22px; } }

.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; color: var(--mute); }
.field > span i { font-style: normal; opacity: .7; }

input {
  width: 100%; min-width: 0;
  background: var(--field); color: var(--text);
  border: 1px solid var(--line); border-radius: 11px;
  padding: 12px 14px;
  font: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder { color: #55555f; }
input:focus { border-color: #00e1ff; box-shadow: 0 0 0 3px rgba(0, 225, 255, .16), 0 0 18px rgba(0, 225, 255, .22); }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.7); cursor: pointer; }
input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 1000px var(--field) inset; }

.field.bad input { border-color: var(--err); }
.err { color: var(--err); font-size: 12.5px; min-height: 0; }
.err:empty { display: none; }

.code-input {
  text-align: center; font-size: 28px; font-weight: 650;
  letter-spacing: .45em; padding-left: calc(14px + .45em);
  font-variant-numeric: tabular-nums;
}

button { font: inherit; cursor: pointer; }
.btn {
  margin-top: 6px;
  border: 0; border-radius: 11px;
  padding: 13px 16px;
  font-weight: 700; color: #000; letter-spacing: .3px;
  background: linear-gradient(90deg, #00e1ff, #8a5cff, #ff2bd6, #00e1ff);
  background-size: 300% 100%;
  animation: slide 6s linear infinite;
  transition: filter .2s, scale .15s, box-shadow .2s;
}
.btn:hover { filter: brightness(1.12); box-shadow: 0 0 26px rgba(138, 92, 255, .55); }
.btn:active { scale: .985; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn:focus-visible, .link:focus-visible, a:focus-visible { outline: 2px solid #00e1ff; outline-offset: 3px; }

.link { background: none; border: 0; padding: 0; color: #00e1ff; }
.link:disabled { color: var(--mute); cursor: default; }
a { color: #00e1ff; text-decoration: none; }
a:hover, .link:not(:disabled):hover { text-decoration: underline; }

.msg { font-size: 14px; border-radius: 10px; }
.msg:empty { display: none; }
.msg.error { color: var(--err); background: rgba(255, 77, 109, .09); border: 1px solid rgba(255, 77, 109, .3); padding: 10px 12px; }
.msg.ok { color: var(--ok); background: rgba(45, 255, 160, .07); border: 1px solid rgba(45, 255, 160, .28); padding: 10px 12px; }

.foot { margin: 20px 0 0; text-align: center; color: var(--mute); font-size: 14.5px; }

/* Hesabım */
.refbox {
  margin: 18px 0 6px; padding: 16px; text-align: center;
  background: var(--field); border: 1px dashed #33333f; border-radius: 12px;
}
.refbox small { display: block; color: var(--mute); margin-bottom: 6px; }
.refbox strong { font-size: 26px; letter-spacing: .22em; font-variant-numeric: tabular-nums; }
.btn.ghost { background: none; animation: none; color: var(--text); border: 1px solid var(--line); width: 100%; }
.btn.ghost:hover { box-shadow: none; border-color: #44444f; }

@keyframes spin  { to { rotate: 360deg; } }
@keyframes turn  { to { --a: 360deg; } }
@keyframes slide { to { background-position: 300% 0; } }

@media (prefers-reduced-motion: reduce) {
  body::before, .card, .btn { animation: none; }
}
