/* ======================
   Reset & Global
====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: always;
}

body {
  font-family: 'regzo-font-main', Arial, sans-serif;
  color: #fff;
  line-height: 1.8;
  direction: rtl;
  background: #111;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ======================
   Fonts
====================== */
@font-face {
  font-family: 'regzo-font-main';
  src: url('../fonts/regzo-font-main.woff2') format('woff2'),
       url('../fonts/regzo-font-main.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'regzo-font-detil';
  src: url('../fonts/regzo-font-detil.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* ======================
   Loading Screen
====================== */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.loader-circle {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 98, 0, 0.2);
  border-top: 4px solid #FF6200;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#loading-screen p {
  font-family: 'regzo-font-detil', Arial, sans-serif;
  color: #FF6200;
  font-size: 1rem;
}

/* ======================
   Particles
====================== */
#particles {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:0;
}

/* ======================
   Header
====================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(20,20,20,0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 30px;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

header.scrolled {
  box-shadow: 0 0 15px #FF6200;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.regzo-icon {
  width: 50px;
  height: auto;
}

.regzo-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #FF6200;
  text-shadow: 0 0 6px #FF8C00;
}

/* Server status */
.server-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(255,98,0,0.12);
  border: 1px solid rgba(255,98,0,0.22);
  font-size: 0.9rem;
  font-family: 'regzo-font-detil', Arial, sans-serif;
  transition: all 0.3s ease;
}

.server-status:hover {
  box-shadow: 0 0 10px #FF6200, 0 0 20px #FF8C00;
  transform: scale(1.05);
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #0f0;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* Desktop Navigation */
.nav-desktop .nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-desktop .nav-links a {
  padding: 6px 12px;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.nav-desktop .nav-links a:hover {
  background: #FF6200;
  box-shadow: 0 0 12px #FF8C00;
  transform: scale(1.1);
}

/* Mobile Navigation */
.mobile-menu-icon {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #FF6200;
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  background: rgba(20,20,20,0.95);
  padding: 10px 0;
}

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-mobile li {
  margin: 10px 0;
}

.nav-mobile a {
  color: #FF6200;
  font-size: 1.2rem;
  font-family: 'regzo-font-detil', Arial, sans-serif;
}

/* ======================
   Hero Section
====================== */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 80px;
  background: linear-gradient(to right, #FF6200, #FF8C00);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 25px rgba(255,98,0,0.8);
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.typing-line {
  border-left: 2px solid #FF6200;
  margin-left: 5px;
  animation: blink-cursor 0.7s steps(1) infinite;
}

@keyframes blink-cursor {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

.hero p {
  font-size: 18px;
  font-family: 'regzo-font-detil', Arial, sans-serif;
  color: #fff;
  margin-bottom: 30px;
}

.hero .cta {
  display: inline-block;
  padding: 15px 50px;
  background: #FF6200;
  color: #fff;
  font-weight: bold;
  border-radius: 35px;
  box-shadow: 0 0 6px #FF8C00, 0 0 12px #FF6200;
  transition: all 0.3s ease;
}

.hero .cta:hover {
  box-shadow: 0 0 16px #FF8C00, 0 0 28px #FF6200;
  transform: scale(1.1);
}

/* ======================
   Sections Common
====================== */
.section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 50px;
  color: #FF8C00;
  text-shadow: 0 0 6px #FF6200;
}

/* ======================
   Feature Cards
====================== */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.feature-card {
  background: rgba(30,30,30,0.85);
  padding: 30px;
  border-radius: 20px;
  flex: 1 1 calc(33.333% - 40px);
  min-width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 0 10px #FF6200;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px #FF8C00, 0 0 30px #FF6200;
}

.feature-card h3 {
  color: #FF6200;
  margin-bottom: 15px;
  text-align: center;
  font-weight: bold;
  text-shadow: 0 0 6px #FF8C00;
}

.feature-card p {
  text-align: center;
  font-family: 'regzo-font-detil', Arial, sans-serif;
}

/* ======================
   Guide, News, Updates
====================== */
.guide-list, .news-item, .update-item {
  background: rgba(30,30,30,0.85);
  border-radius: 20px;
  padding: 20px 30px;
  box-shadow: 0 0 10px #FF6200;
  transition: all 0.3s ease;
}

.guide-list:hover, .news-item:hover, .update-item:hover {
  transform: scale(1.03);
  box-shadow: 0 0 18px #FF8C00, 0 0 30px #FF6200;
}

.guide-list li {
  margin-bottom: 12px;
  font-family: 'regzo-font-detil', Arial, sans-serif;
}

.guide-list a {
  color: #FF6200;
}

/* ======================
   Join Buttons
====================== */
.buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.buttons .cta {
  padding: 12px 35px;
  border-radius: 35px;
  background: #FF6200;
  box-shadow: 0 0 6px #FF8C00, 0 0 12px #FF6200;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.buttons .cta:hover {
  transform: scale(1.1);
  box-shadow: 0 0 16px #FF8C00, 0 0 28px #FF6200;
}

/* ======================
   Footer
====================== */
footer {
  padding: 40px 20px;
  text-align: center;
  background: rgba(20,20,20,0.9);
}

footer p {
  margin-bottom: 20px;
  color: #FF8C00;
}

.social-links a {
  margin: 0 10px;
  color: #FF6200;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.2);
  text-shadow: 0 0 6px #FF8C00;
}

/* ======================
   Responsive
====================== */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .mobile-menu-icon {
    display: block;
  }

  .header {
    padding: 12px 15px;
  }

  .features {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}



/* ======================
   Register Page Styles
====================== */
main.register-main {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* فرم پایین‌تر */
  padding: 80px 20px;
  min-height: 80vh;
  position: relative;
  z-index: 1;
}

.register-container {
  background: rgba(30,30,30,0.9);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 0 20px #FF6200, 0 0 30px #FF8C00;
  width: 400px;
  max-width: 100%;
  text-align: center;
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(-20px);}
  100% { opacity: 1; transform: translateY(0);}
}

.register-container h2 {
  color: #FF6200;
  margin-bottom: 30px;
  font-size: 2.2rem;
  text-shadow: 0 0 6px #FF8C00;
}

.register-form input {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: 35px;
  border: 1px solid rgba(255,98,0,0.4);
  background: rgba(20,20,20,0.8);
  color: #fff;
  font-family: 'regzo-font-detil', Arial, sans-serif;
  transition: all 0.3s ease;
  text-align: right;
}

.register-form input:focus {
  outline: none;
  box-shadow: 0 0 12px #FF6200, 0 0 20px #FF8C00;
  border-color: #FF6200;
  background: rgba(30,30,30,0.95);
}

.register-form button {
  width: 100%;
  padding: 15px 0;
  border-radius: 35px;
  background: #FF6200;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 6px #FF8C00, 0 0 12px #FF6200;
  transition: all 0.3s ease;
  font-family: 'regzo-font-main', Arial, sans-serif;
}

.register-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px #FF8C00, 0 0 28px #FF6200;
}

.login-link {
  display: block;
  margin-top: 20px;
  color: #FF6200;
  text-decoration: none;
  transition: all 0.3s ease;
}

.login-link:hover {
  text-shadow: 0 0 8px #FF8C00;
}

/* ==---------------------------------------------------------====================
 /* ======================
   Register/Login Page
======================= */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #111;
  font-family: 'regzo-font-main', Arial, sans-serif;
  color: #fff;
  margin: 0;
  position: relative;
  overflow-x: hidden;
}

main.register-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  z-index: 1;
  position: relative;
}

.register-container {
  background: rgba(30,30,30,0.95);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 0 20px #FF6200, 0 0 30px #FF8C00;
  width: 400px;
  max-width: 95%;
  text-align: center;
  animation: fadeIn 1s ease;
  z-index: 2;
  position: relative;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(-20px);}
  100% { opacity: 1; transform: translateY(0);}
}

.register-container h2 {
  color: #FF6200;
  margin-bottom: 30px;
  font-size: 2rem;
  text-shadow: 0 0 6px #FF8C00;
}

.register-form input {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: 35px;
  border: 1px solid rgba(255,98,0,0.4);
  background: rgba(20,20,20,0.8);
  color: #fff;
  font-family: 'regzo-font-detil', Arial, sans-serif;
  transition: all 0.3s ease;
  text-align: right;
}

.register-form input:focus {
  outline: none;
  box-shadow: 0 0 12px #FF6200, 0 0 20px #FF8C00;
  border-color: #FF6200;
  background: rgba(30,30,30,0.95);
}

.register-form button {
  width: 100%;
  padding: 15px 0;
  border-radius: 35px;
  background: #FF6200;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 6px #FF8C00, 0 0 12px #FF6200;
  transition: all 0.3s ease;
  font-family: 'regzo-font-main', Arial, sans-serif;
}

.register-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px #FF8C00, 0 0 28px #FF6200;
}

.login-link {
  display: block;
  margin-top: 20px;
  color: #FF6200;
  text-decoration: none;
  transition: all 0.3s ease;
}

.login-link:hover {
  text-shadow: 0 0 8px #FF8C00;
}

/* Footer */
footer {
  background: rgba(20,20,20,0.9);
  text-align: center;
  padding: 12px 20px;
  flex-shrink: 0;
  position: relative;
}

/* Responsive */
@media (max-width: 500px) {
  .register-container {
    width: 90%;
    padding: 30px 20px;
  }
  .register-container h2 {
    font-size: 1.8rem;
  }
  .register-form input {
    padding: 10px 12px;
  }
  .register-form button {
    font-size: 1rem;
  }
}


/* ===========================
    Loading Screen
=========================== */
#loading-screen {
  position: fixed;
  inset: 0;
  background: #111;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader {
  width: 55px;
  height: 55px;
  border: 5px solid #ff6200;
  border-top: 5px solid transparent;
  border-radius: 50%;
  animation: spinLoad 1s linear infinite;
}

@keyframes spinLoad {
  to { transform: rotate(360deg); }
}

.loading-text {
  margin-top: 15px;
  color: #ff8c00;
  font-size: 1rem;
}

/* کد مخفی کردن لودینگ بعد از لود صفحه */
body.loaded #loading-screen {
  display: none;
}

/* ===========================
      Mobile Responsive
=========================== */
@media (max-width: 600px) {

  .auth-section {
    margin-top: 160px;
  }

  .auth-form {
    width: 92%;
    padding: 30px 20px;
  }

  .form-title {
    font-size: 1.6rem;
  }

  /* منوی موبایل درست */
  .nav-mobile {
    top: 70px !important;
  }
}


/* ===========================
   Orange Floating Dots
=========================== */
.orange-dots {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: center;
  gap: 20px;
  pointer-events: none;
}

.orange-dots .dot {
  width: 10px;
  height: 10px;
  background: #ff6200;
  border-radius: 50%;
  box-shadow: 0 0 10px #ff8c00;
  animation: floatUp 3s infinite ease-in-out;
  opacity: 0.7;
}

.orange-dots .dot:nth-child(2) { animation-delay: .3s; }
.orange-dots .dot:nth-child(3) { animation-delay: .6s; }
.orange-dots .dot:nth-child(4) { animation-delay: .9s; }
.orange-dots .dot:nth-child(5) { animation-delay: 1.2s; }
.orange-dots .dot:nth-child(6) { animation-delay: 1.5s; }

@keyframes floatUp {
  0% { transform: translateY(0); opacity: .4; }
  50% { transform: translateY(-25px); opacity: 1; }
  100% { transform: translateY(0); opacity: .4; }
}
