@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;600;700;800;900&display=swap');

:root{
  --bg:#f5f7fb;
  --bg2:#eef2ff;

  --card:#ffffff;
  --stroke: rgba(15,23,42,.10);

  --text: rgba(15,23,42,.92);
  --muted: rgba(15,23,42,.60);

  --shadow: 0 14px 40px rgba(15,23,42,.10);
  --shadow2: 0 10px 26px rgba(15,23,42,.08);

  --radius: 22px;

  --accent:#2563eb;
  --accent2:#06b6d4;

  --danger:#ef4444;
  --dangerText: rgba(153,27,27,.95);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Vazirmatn",Tahoma,Arial;
  color:var(--text);
  background:
    radial-gradient(900px 600px at 15% 12%, rgba(37,99,235,.10), transparent 60%),
    radial-gradient(800px 500px at 80% 25%, rgba(6,182,212,.08), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

.auth-wrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:18px;
}

.auth-card{
  width:min(430px, 92vw);
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.auth-top{
  padding: 18px 18px 10px;
  display:flex;
  align-items:center;
  gap:12px;
}

.logo{
  width:46px;
  height:46px;
  border-radius:18px;
  background:
    radial-gradient(12px 12px at 30% 30%, rgba(255,255,255,.95), rgba(255,255,255,.35)),
    linear-gradient(135deg, rgba(37,99,235,.95), rgba(6,182,212,.92));
  border:1px solid rgba(37,99,235,.18);
  box-shadow: 0 10px 26px rgba(37,99,235,.18);
  flex: 0 0 auto;
}

.title{
  font-weight:950;
  letter-spacing:-.3px;
  line-height:1.2;
}

.sub{
  margin-top:2px;
  font-size:12px;
  color:var(--muted);
  line-height:1.6;
}

.auth-body{
  padding: 10px 18px 18px;
}

.alert{
  background: rgba(239,68,68,.10);
  border: 1px solid rgba(239,68,68,.25);
  color: var(--dangerText);
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 12px;
  margin-bottom: 10px;
}

.form{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.label{
  font-size:12px;
  color:var(--muted);
  margin-bottom:6px;
}

.input{
  width:100%;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(15,23,42,.03);
  color: var(--text);
  outline:none;
  transition: border-color .12s ease, box-shadow .12s ease, transform .10s ease;
}

.input:focus{
  border-color: rgba(37,99,235,.35);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.btn{
  width:100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(37,99,235,.20);
  background: linear-gradient(135deg, rgba(37,99,235,.98), rgba(6,182,212,.92));
  color: #fff;
  font-weight:900;
  cursor:pointer;
  box-shadow: var(--shadow2);
  transition: transform .12s ease, box-shadow .12s ease;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15,23,42,.12);
}

.btn:active{
  transform: translateY(0);
}

.link{
  display:inline-block;
  margin-top:10px;
  font-size:12px;
  color:var(--muted);
  text-decoration:none;
}

.link:hover{
  color:var(--text);
}

@media (max-width: 420px){
  .auth-top{padding: 16px 14px 8px}
  .auth-body{padding: 10px 14px 14px}
  .logo{width:44px;height:44px;border-radius:16px}
}
