@font-face {
  font-family: 'myfont';
  src: url('../fonts/Yekan.eot');
  src: url('../fonts/Yekan.eot?#iefix') format('embedded-opentype'),
       url('../fonts/vasir.woff2') format('woff2'),
       url('../fonts/Yekan.woff') format('woff'),
       url('../fonts/vasir.ttf')  format('truetype'),
       url('../fonts/Yekan.svg#svgFontName') format('svg');
}


* {
  font-family: 'myfont' , sans-serif;
  font-feature-settings: 'lnum' 1;
  font-weight: 500 !important;
  direction: rtl !important;
  margin: 0 !important;
  padding: 0 !important;
  font-style: normal;
  font-size: 15px;
  color: #ccc5c5;
}

html { scroll-behavior: smooth; }

.main {
  overflow-y: scroll;
  scrollbar-width: 0 !important;
}

.main::-webkit-scrollbar { display: none !important; }

.logo {
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 5px;
  transform-style: preserve-3d;
  animation: rotateY3D 10s linear infinite;
  transition: opacity 0.5s ease-in-out, filter 0.5s ease-in-out;
  filter: drop-shadow(0 0 15px #ff5f6d); /* Glow */
}

.logo2 {
  display: inline-block;
  position: relative; /* برای ذرات */
  transition: transform 0.5s ease-in-out;
}

.logo2:hover {
  transform: scale(1.1);
}

/* چرخش سه بعدی */
@keyframes rotateY3D {
  0% { transform: rotateY(0deg); filter: drop-shadow(0 0 10px #ff4453); }
  25% { transform: rotateY(90deg); filter: drop-shadow(0 0 20px #ff3e4e); }
  50% { transform: rotateY(180deg); filter: drop-shadow(0 0 15px #ff4242); }
  75% { transform: rotateY(270deg); filter: drop-shadow(0 0 20px #ffffff); }
  100% { transform: rotateY(360deg); filter: drop-shadow(0 0 10px #ff3243); }
}

.brand {
  width: 100%;
  position: absolute;
  justify-self: center;
  text-align: center;
}

.sec{
    display: flex;
    width: 100%;
    overflow: hidden;
    height: 100vh;
}

.sec-one{
    width: 100%;
    background: linear-gradient(to bottom, black,  #5c2b01 , black);
    overflow: hidden;
    position: relative;
    justify-content: center;
    align-items: center;
    display: flex;
}

.secorg{
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, black,  #5c2b01 , black);
    overflow: hidden;
    position: absolute;
    top: 0 !important;
    opacity: 0.8;
}


.sec-two{
    position: relative;
    justify-self: center;
    text-align: center;
    align-items: center;
    display: flex;
    width: 600px;
    background-color: rgb(0, 0, 0);
    overflow: hidden;
}

video{
    height: 100vh !important;
    position: absolute;
}

.name{
    width: 100%;
    position: absolute;
    bottom: 8%;
    display: flex;
    direction: ltr !important;
    text-align: center;
    justify-content: center;
}

.name h1 {
  font-size: 25px !important;
  font-weight: 400 !important;
  margin: 10px !important;
  font-style: bold !important;
  animation: colorScale 3s infinite alternate;
}

/* افکت تغییر رنگ و اندازه */
@keyframes colorScale {
  0% {
    color: red;
    text-shadow: 3px 3px 6px black; /* سایه مشکی نرم */
  }
  100% {
    color: white;
    text-shadow: none;
  }
}

/* تاخیر زمانی برای هر حرف، برای اینکه یکی‌یکی تغییر کنند */
.name h1:nth-child(2) { animation-delay: 0s; }
.name h1:nth-child(3) { animation-delay: 0.2s; }
.name h1:nth-child(4) { animation-delay: 0.4s; }
.name h1:nth-child(5) { animation-delay: 0.6s; }
.name h1:nth-child(6) { animation-delay: 0.8s; }
.name h1:nth-child(7) { animation-delay: 1s; }
.name h1:nth-child(8) { animation-delay: 1.2s; }

.aa{
    bottom: 6% !important;
}

.aa > h1{
    font-size: 16px !important;
    margin: 5px !important;
}

.bb{
    bottom: 3% !important;
}

.bb > h1{
    font-size: 14px !important;
    margin: 5px !important;
}

.divlogin{
  padding: 40px 20px 30px 20px !important;
    max-width: 400px;
    width: 80%;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.384);
    z-index: 3;
    position: absolute;
    text-align: center;
}

.infologo{
  width: 150px;
}

.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 25px;
  text-align: center;
  width: 100%;
  color: white;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(10px);}
  to {opacity: 1; transform: translateY(0);}
}

.form-container h2 {
  margin-bottom: 10px !important;
  color: #89817d;
}

.form-container input {
  width: 80%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: rgba(40,40,40,0.9);
  color: #fff;
  outline: none;
  transition: background 0.3s ease;
}

#formFields{
  width: 100%;
}

.form-container input:focus {
  background: rgba(60,60,60,0.9);
}

button {
  height: 56px;
  background: #02020281;
  color: #fff;
  padding: 15px 0px !important;
  border: none;
  border-radius: 8px;
  padding: 10px 25px;
  cursor: pointer;
  font-size: 15px;
  width: 80%;
  transition: 0.3s;
  display: flex;
  justify-content: center !important;
}

button:hover {
  transform: scale(1.05);
}

.remember {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: #ccc;
  margin-top: 15px !important;
  margin-bottom: 20px !important;
}

.link {
  font-size: 13px;
  margin-top: 20px !important;
}

.link a {
  color: #ff6565;
  text-decoration: none;
}

.link a:hover {
  color: #ff3737;
}

.hidden {
  display: none !important;
}

/* ===== فرم داینامیک ===== */
.form-container input {
  width: 100%;
  padding: 12px !important;
  margin: 5px 0 !important;
  border-radius: 10px;
  border: 1px solid #555;
  background-color: #1111119e;
  color: #ccc;
  font-size: 15px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}
.form-container input:focus {
  outline: none;
  border-color: #ff6666;
  box-shadow: 0 0 6px #ff6666;
  background-color: #111111d0;
}

.form-container button {
  width: 100%;
  padding: 12px 15px;
  margin-top: 10px !important;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
}

.form-container .link {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
}
.form-container .link a {
  text-decoration: none;
  transition: 0.3s;
}

/* ===== سوئیچ کشویی مرا به خاطر بسپار ===== */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #444;
  transition: 0.4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
.switch input:checked + .slider {
  background-color: #ff6666;
}
.switch input:checked + .slider:before {
  transform: translateX(20px);
}

/* ===== OTP ۵ رقمی ===== */
.otp-container {
  text-align: center;
  margin-top: 15px;
}
.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}
.otp-input {
  width: 45px;
  height: 50px;
  text-align: center;
  font-size: 24px;
  border: 2px solid #555;
  border-radius: 10px;
  background-color: #111;
  color: #ccc;
  transition: all 0.3s ease;
}
.otp-input:focus {
  outline: none;
  border-color: #ff6666;
  box-shadow: 0 0 6px #ff6666;
}

/* ===== فرم تغییر رمز ===== */
#newPassword, #confirmPassword {
  width: 100%;
  padding: 12px 15px;
  margin: 10px 0;
  border-radius: 10px;
  border: 1px solid #555;
  background-color: #111;
  color: #ccc;
  font-size: 15px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}
#newPassword:focus, #confirmPassword:focus {
  outline: none;
  border-color: #ff6666;
  box-shadow: 0 0 6px #ff6666;
}

#sendRegisterCode:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.loader {
  width: 20px;
  height: 20px;
  border: 3px solid #ffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
  margin: auto;
}

.loading .btn-text {
  display: none;
}

.loading .loader {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-text{
  color: #fff;
  margin-top: 1px !important;
}

.otp-inputs input{
  padding: 0px !important;
  height: 70px !important;
  font-size: 30px !important;
  font-weight: 700 !important;
}

.otp-inputs{
  direction: ltr !important;
}

.off{
  color: rgb(151, 151, 151) !important;
}