@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap');

* { margin:0; padding:0; box-sizing:border-box; font-family:'Vazirmatn', sans-serif; }
html, body { width:100%; height:100%; direction: rtl; overflow: hidden; }

body {
  background: linear-gradient(135deg, #0d0d0d, #1a1a40, #0d0d0d);
  background-size: 300% 300%;
  animation: gradientMove 15s ease infinite;
  display:flex; justify-content:center; align-items:center;
  min-height:100vh; color:#fff; position: relative; z-index: 1;
}

@keyframes gradientMove {
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}

#tsparticles { position: fixed; top:0; left:0; width:100%; height:100%; z-index:0; }

.container {
  display:flex; max-width:900px; width:100%; background: rgba(17,17,17,0.4);
  border-radius:16px; overflow:hidden; backdrop-filter: blur(15px);
  border:1px solid rgba(255,255,255,0.1); box-shadow:0 0 30px rgba(128,0,255,0.4);
  z-index:1; position: relative; animation: fadeInUp 1s ease;
}

@keyframes fadeInUp { from {opacity:0; transform:translateY(40px);} to{opacity:1; transform:translateY(0);} }

.left {
  flex:1; background:linear-gradient(135deg, rgba(58,12,163,0.9), rgba(114,9,183,0.8), rgba(67,97,238,0.8), rgba(76,201,240,0.7));
  display:flex; justify-content:center; align-items:center; text-align:center; padding:40px; flex-direction:column; color:#fff;
}

.left h2 { font-size:28px; margin-bottom:15px; }
.left p { font-size:14px; line-height:1.6; }

.right { flex:1; padding:40px; background: rgba(26,26,26,0.7); border-radius: 0 16px 16px 0; }
.right h2 { font-size:24px; margin-bottom:10px; }
.right p { font-size:13px; margin-bottom:20px; }
.right p a { color:#a855f7; text-decoration:none; }

.home-button {
  padding: 10px 16px;
  margin-bottom: 15px;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.home-button:hover {
  background: #4f46e5;
  box-shadow: 0 0 12px #6366f1, 0 0 20px #4f46e5;
  transform: scale(1.05);
}

form { display:flex; flex-direction:column; }
form label { font-size:13px; margin-bottom:5px; }
form input { padding:12px; margin-bottom:10px; border:none; outline:none; border-radius:6px; background: rgba(42,42,42,0.8); color:#fff; text-align:right; transition:0.3s; }
form input:focus { box-shadow:0 0 8px #9333ea; }
form button { padding:12px; border:none; border-radius:6px; background:#a855f7; color:#fff; font-weight:600; cursor:pointer; transition:0.3s; margin-top:10px; }
form button:hover { background:#9333ea; box-shadow:0 0 15px #9333ea,0 0 30px #a855f7; transform:scale(1.05); }

.errorlist { color:#f87171; font-size:12px; margin-bottom:10px; }
.info-message { background: rgba(58,12,163,0.7); padding:10px; margin-top:10px; border-radius:6px; font-size:13px; text-align:center; }
.hidden { display:none; }

.resend-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background: #6366f1;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
}
.resend-btn:hover { background:#4f46e5; transform:scale(1.05); }

@media (max-width:768px){
  .container{flex-direction:column;}
  .left,.right{width:100%; border-radius:0; padding:20px;}
  .left h2{font-size:22px;} .left p{font-size:13px;}
  .right h2{font-size:20px;} .right p{font-size:12px;}
  form input{font-size:14px; padding:10px;}
  form button{font-size:14px; padding:10px;}
}

/* Loader */
#loader {
  position: fixed; top:0; left:0; width:100%; height:100%;
  background: rgba(10,10,20,0.95);
  display:flex; justify-content:center; align-items:center; flex-direction:column;
  z-index:9999; opacity:1; transition: opacity 0.6s ease;
}
#loader.hidden { opacity:0; pointer-events:none; }

.code-line {
  font-family: monospace; font-size: 18px; color: #e0e7ff;
  white-space: nowrap; overflow: hidden; border-right: 2px solid #6366f1;
  width: 0; animation: typing 1.5s steps(30,end) forwards, blink 0.6s infinite;
  font-weight: 500; margin-bottom: 15px;
}
@keyframes typing { from { width: 0; } to { width: 100%; } }
@keyframes blink { 50% { border-color: transparent; } }

.dots { display:flex; gap:8px; }
.dot { width:10px; height:10px; border-radius:50%; background:#6366f1; animation: bounce 0.5s infinite alternate; }
.dot:nth-child(2){ animation-delay:0.1s; }
.dot:nth-child(3){ animation-delay:0.2s; }
@keyframes bounce { from{ transform: translateY(0); opacity:0.7;} to{ transform: translateY(-8px); opacity:1;} }
