/* ریست و فونت */
* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
}

/* بک‌گراند کل صفحه */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(-45deg, #6a11cb, #2575fc, #4a00e0, #8e2de2);
  background-size: 400% 400%;
  animation: bg 12s ease infinite;
}

/* فرم ثبت‌نام */
.register-form {
  width: 85%;
  max-width: 480px;
  background: rgba(255,255,255,0.95);
  padding: 30px 24px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* همه input, textarea, select */
.register-form input,
.register-form textarea,
.register-form select {
  padding: 14px;
  font-size: 1.5rem;
  border-radius: 14px;
  border: 1px solid #ccc;
  outline: none;
  transition: all 0.25s ease;
  width: 100%;
}

.register-form input:focus,
.register-form textarea:focus,
.register-form select:focus {
  border-color: #6a11cb;
  box-shadow: 0 0 0 3px rgba(106,17,203,0.2);
}

/* textarea */
.register-form textarea {
  resize: none;
  min-height: 80px;
}

/* دکمه ثبت‌نام */
.btn-register {
  padding: 16px;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(101, 67, 255, 0.35);
}

.btn-register:active {
  transform: scale(0.97);
}

/* لینک ورود */
.login-link {
  text-align: center;
  display: block;
  color: #6a11cb;
  text-decoration: none;
  font-weight: 500;
  margin-top: 6px;
  transition: 0.25s;
}

.login-link:hover {
  text-decoration: underline;
}

/* انیمیشن بک‌گراند */
@keyframes bg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .register-form {
    padding: 24px 18px;
  }
  .register-form input,
  .register-form textarea,
  .register-form select {
    font-size: 1.4rem;
    padding: 12px;
  }
  .btn-register {
    font-size: 1.5rem;
    padding: 14px;
  }
}





/* شیشه‌ای */
body.theme-glass {
  background: linear-gradient(-45deg, #6a11cb, #2575fc, #4a00e0);
  background-size: 400% 400%;
  animation: bg 12s ease infinite;
}

body.theme-glass #dive {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.3);
}
body.theme-glass input {

  width: 100%;
  margin-bottom: 16px;
  padding: 14px 16px;
  font-size: 1.6rem;
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  outline: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
}

/* دارک مود */
body.theme-dark {
  background: radial-gradient(circle at top, #1f1f1f, #0b0b0b);
}

body.theme-dark #dive {

  border: 1px solid rgba(255,255,255,0.08);
}

body.theme-dark input {
  width: 100%;
  margin-bottom: 16px;
  padding: 14px 16px;
  font-size: 1.6rem;
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  outline: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
}

body.theme-dark .btn-login {
  background: linear-gradient(135deg, #444, #111);
}


/* کلاسیک سفید */
body.theme-classic {
  background: #ebedee;
}

body.theme-classic #dive {
  text-align: center;
  border: none;
  background: none;
  box-shadow: 0 15px 40px rgba(0,0,0,0.0);
}

body.theme-classic input {
  width: 100%;
  margin-bottom: 16px;
  padding: 14px 16px;
  font-size: 1.6rem;
  border-left: none;
  border-right: none;
  border-top: none;
  text-align: center;
  border-left: none;
 
  background: #ebedee;
  color: #000000;
  outline: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);

}

body.theme-classic .btn-login {
    border-radius: 100%;
  width: 22%;

  background: #00bfff;
  color: #ffffff;
}


/* سلکتور تم بالا سمت چپ */
#themeSwitcher {
  
  position: fixed; /* همیشه در صفحه ثابت میمونه */
  top: 20px;       /* فاصله از بالا */
  left: 20px;      /* فاصله از چپ */
  padding: 8px 12px;
  border-radius: 12px;
 
  
  color: #fff;
  font-size: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;   /* همیشه بالای همه عناصر */
  cursor: pointer;
}

/* وقتی موس روی سلکتور میره */
#themeSwitcher:hover {
  background: rgba(0,0,0,0.6);
}

/* استایل option ها هم لوکس‌تر */
#themeSwitcher option {
  background: #fff;
  color: #333;
}

.icon{
    width: 40px;
}