/* file: assets/css/style.css */
:root {
  --primary-from: #3b5bfe;
  --primary-to: #2244dd;
  --bg: #0b1020;
  --card: rgba(255,255,255,0.09);
  --card-border: rgba(255,255,255,0.18);
  --text: #eef2ff;
  --muted: #b7c0ff;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}
   @font-face {
    font-family: 'IRANSansWeb';
    src: url('../../iransens.ttf') format('truetype');
    font-weight: bold;
}



* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
 font-family: 'IRANSansWeb', sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% 10%, #10173a 0%, #070b1c 60%, #05070f 100%);
  overflow: hidden;
}

.bg .gradient {
  position: fixed; inset: -20vmax;
  background: conic-gradient(from 120deg at 30% 40%,
      rgba(59,91,254,.24), rgba(34,68,221,.18), transparent 40%);
  filter: blur(60px);
  z-index: -3;
  animation: spin 30s linear infinite;
}

.bg .mesh span {
  position: fixed;
  width: 50vmax; height: 50vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .25;
  z-index: -4;
  background: radial-gradient(circle at 30% 30%, var(--primary-from), transparent 60%);
  animation: float 18s ease-in-out infinite;
}
.bg .mesh span:nth-child(2){ top:10%; left:-10%; animation-delay: -4s; }
.bg .mesh span:nth-child(3){ right:-20%; bottom:-10%; animation-delay: -8s; }
.bg .mesh span:nth-child(4){ left:40%; top:60%; animation-delay: -12s; }

#stars {
  position: fixed; inset: 0; z-index: -1;
}

.container {
  min-height: 100dvh; /* بجای 100vh که توی موبایل دقیق نیست */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.card {
  width: min(92vw, 430px);
  margin: auto;              /* وسط‌چین شدن بهتر */
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08));
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow);
}


.brand {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0 18px 0; border-bottom: 1px dashed rgba(255,255,255,.2);
  margin-bottom: 18px;
}
.brand i { font-size: 28px; color: var(--text); }
.brand h1 { font-size: 18px; margin: 0; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }

h2 { margin: 18px 0; font-size: 20px; letter-spacing: .2px; }

.alert {
  display:flex; align-items:center; gap:10px;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(255,66,66,.12); color:#ffb3b3;
  border:1px solid rgba(255,66,66,.25); margin-bottom: 10px;
}
.shake { animation: shake .4s ease; }

.form { display: grid; gap: 16px; }

.field {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  transition: .25s;
}
.field:focus-within {
  border-color: color-mix(in oklab, var(--primary-from), white 25%);
  box-shadow: 0 8px 20px rgba(59,91,254,.25);
  transform: translateY(-1px);
}
.field i { font-size: 20px; color: var(--muted); }
.field input {
  background: transparent; border: none; outline: none;
  color: var(--text); font-size: 15px; padding: 10px 0;
}
.field label {
  position: absolute; right: 48px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none; transition: .2s; background: transparent;
  padding: 0 6px;
}
.field .line {
  position: absolute; right: 46px; left: 12px; bottom: 8px; height: 1px;
  background: linear-gradient(90deg, var(--primary-from), var(--primary-to));
  opacity:.25;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: -8px; font-size: 12px; color: #dfe3ff; background: rgba(0,0,0,.2); border-radius: 10px;
}

.eye {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 20px;
}

.extra {
  display:flex; align-items:center; justify-content: space-between;
  margin-top: 2px;
}
.checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox input { display:none; }
.checkbox span {
  width: 18px; height: 18px; border-radius: 6px;
  border:1.5px solid rgba(255,255,255,.5); display:inline-block; position: relative;
  transition: .2s;
}
.checkbox input:checked + span {
  background: linear-gradient(135deg, var(--primary-from), var(--primary-to));
  box-shadow: 0 4px 12px rgba(59,91,254,.35) inset;
}
.link { color: #dfe3ff; text-decoration: none; opacity:.9 }
.link:hover { opacity: 1; text-decoration: underline; }

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.25);
  cursor: pointer; font-weight: 700; letter-spacing:.2px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--primary-from), var(--primary-to));
  box-shadow: 0 8px 24px rgba(59,91,254,.35);
}
.btn.primary:hover { transform: translateY(-1px); }
.btn.primary:active { transform: translateY(0); filter: brightness(.98); }
.btn .btn-loader {
  position:absolute; inset:0; border-radius:14px; display:none;
  background: radial-gradient(120px 80px at 20% 10%, rgba(255,255,255,.25), transparent 60%);
  animation: shimmer 1s linear infinite;
}
.btn.loading .btn-content { opacity: 0; }
.btn.loading .btn-loader { display:block; }

.btn.ghost {
  background: rgba(255,255,255,.06);
  color: var(--text);
}

.divider {
  position: relative; margin: 14px 0; text-align:center; color: var(--muted);
}
.divider:before, .divider:after {
  content: ""; height: 1px; position: absolute; top: 50%; width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
}
.divider:before { right: 0; }
.divider:after { left: 0; }

.providers { display:grid; grid-template-columns:1fr 1fr; gap:10px; }

.foot { margin-top: 16px; display:flex; gap:8px; justify-content:center; color: var(--muted); }

/* Animations */
@keyframes rise { from { opacity:0; transform: translateY(22px); } to { opacity:1; transform: translateY(0); } }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}
@keyframes shimmer { to { background-position: 200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(10%, -6%) scale(1.05); }
}

/* Responsive */
@media (max-width: 480px) {
  .card { padding: 22px; border-radius: 18px; }
  .providers { grid-template-columns:1fr; }
}

@media (max-width: 480px) {
  .container {
    padding-top: 40px;
    padding-bottom: 40px; /* فاصله از کف گوشی */
  }
  .card {
    border-radius: 18px;
  }
}
