/* ================== RESET ================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    width: 100%;
    color: #000;
    background: #fff;
    font-family: 'AbarLowFaNum', system-ui;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    min-height: 100vh;
    position: relative;
}

input, button {
    font-family: 'AbarLowFaNum', system-ui;

}
a {
  text-decoration: none;
  color: #000;
}


img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================== LAYOUT ================== */

.container {
  max-width: 1169px;
  min-height: calc(100vh - 30px);
  margin: 0 auto;
  padding: 82px 0 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}




.main-content {
  margin: 53px 0 39px;
  display: flex;
  gap: 24px;
  width: 100%;
}

.seconed-content {
  margin: 0 auto;
  box-shadow: 0 16px 32px -4px rgba(12, 12, 13, 0.1);
  border-radius: 50px;
  width: 570px;
  padding: 36px 85px;
  margin-top: 30px;

}


/* ================== HEADER ================== */


header {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  display: inline-flex;
}

.logo img {
  width: 220px;
  height: 59px;
}


/* ================== FORM ================== */

.col-right,
.col-left {
  flex: 0 0 calc(50% - 12px);
  box-sizing: border-box;
}

.col-right {
  position: relative;
  box-shadow: 0 5px 31px 4px #0C0C0D0D;
  border-radius: 24px;
  border: 6px solid #F2F2F2;
  padding: 40px 81px;
  overflow: hidden;
}

.col-right::before {
  content: '';
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: -1;
  border-radius: 24px;
  position: absolute;
  background: url(../images/bgRectangle.svg) center/cover;
}

.main-content h1 {
  font-size: 16px;
  line-height: 29px;
  text-align: center;
  font-weight: 900;
}

.main-content p,
.form-card p {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  margin-top: 8px;
}

.login-box {
  margin-top: 13px;

}

.login-box .formFiled {
  margin-bottom: 24px;
}

.formFiled span {
  position: absolute;
  left: 1%;
  top: 11%;
  padding: 8px
}

.formFiled label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 26px;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"] {
  border: 1px solid #ccc;
  border-radius: 16px;
  width: 100%;
  padding: 14px 16px;
  background-color: #fff;
  line-height: 1.25rem;
  box-shadow: none;
  outline: none;
}

.login-box input:focus,
.forgot-box input:focus {
  border-color: #fa764d !important;
}


.login-box input::placeholder,
.forgot-box input::placeholder {
  color: #9CA3AF;
}

.captcha-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-top: 8px;

}
.captcha-box img {
    width: 100%;
    border-radius: 16px;
    height: 100%;
    display: none;
}
.captcha-box {
    flex: 0 0 36%;
    /*padding: 3px;*/
    background: #f3f3f3;
    text-align: center;
    font-size: 18px;
    letter-spacing: 4px;
    border-radius: 16px;
    line-height: 24px;
    height: 50px;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.captcha-refresh {
  position: relative;
  flex: 0 0 60%;
}

.captcha-refresh span {
  position: absolute;
  left: 1%;
  top: 11%;
  padding: 8px;
    cursor: pointer;

}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  font-size: 12px;
}

.checkbox-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.checkbox-input {
  display: none;
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid #DFE4EA;
  background: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
}

.checkbox-input:checked~.custom-checkbox {
  background-color: #53118C;
  border-color: #53118C;
}

.checkbox-input:checked~.custom-checkbox svg {
  display: block;
  fill: white;
  width: 14px;
  height: 14px;
}

.custom-checkbox svg {
  display: none;
}

.checkbox-label {
  font-size: 12px;
  line-height: 1.75rem;
}

.remember-forgot a {
  color: #53118C;
  font-weight: 600;
}


.login-box .login-btn,
.forgot-box .login-btn,
.forgot-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(81.33deg, #FA764D -0.6%, #53118C 97.57%);
    text-decoration: none;
    font-weight: 700;
    border: none;
    color: white;
    font-size: 14px;
    border-radius: 16px;
    cursor: pointer;
    margin: 22px 0;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.forgot-box .login-btn {
  margin-bottom: 0;
}



.signup-link {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}



.signup-link a {
  color: #53118C;
  text-decoration: none;
  font-weight: 700;
  margin-right: 10px;
}

.back-btn {
  text-align: center;
  font-size: 14px;
  color: #53118C;
  font-weight: 600;

}

.col-left {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  row-gap: 10px;
  column-gap: 18px;
}

.card {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 18px 20px;
  border: 6px solid #F2F2F2;
  transition: transform 0.2s ease;
  border-radius: 24px;
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-4px);
  cursor: pointer;
}

.card::before {
  content: '';
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: -1;
  border-radius: 24px;
  position: absolute;
  background-image: url(../images/Rectangle.svg);
  background-position: center;
  background-size: cover;
}


.card h3 {
  font-size: 14px;
  margin: 0;
  line-height: 24px;
}

.card p {
  font-size: 11px;
  color: #7D7A79;
  margin-top: 8px;
  text-align: right;
}

.card .card-title {
  display: flex;
}

.card-title svg {
  margin-left: 8px;
}

.security-tips {
  margin: 0 auto;
  font-size: 11px;
  line-height: 22px;
  font-weight: 600;
  text-align: justify;
  margin-bottom: 16px;
  padding-right: 87px;
  padding-left: 87px;

}

.security-tips-title {
  font-size: 12px;
  font-weight: 800;
  line-height: 24px;
  margin-bottom: 4px;
}

.security-tips ul {
  list-style: none;
  padding-left: 0;
}

.security-tips ul li {
  position: relative;
  padding-right: 20px;
  line-height: 24px;
}

.security-tips ul li::before {
  content: '•';
  position: absolute;
  right: 6px;
  top: 0px;
  color: #555;
}

.security-tips-cols {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;

}

.support-container {
  display: flex;
  justify-items: center;
  align-items: center;
}

.support-container span {
  margin-left: 46px;
  font-size: 14px;
}

.support-container a {
  display: inline-flex;
  justify-items: center;
  align-items: center;
  color: #000;
  border: 1px solid;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 5px 12px;
  border-radius: 16px;

}

.support-container a svg {
  margin-right: 8px;
}

.social {
  text-align: center;
  position: absolute;
  bottom: 20px;
  right: 0;
  left: 0;
}

.social-title {
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 20px;
}

.social-icons {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;

}

.social-icons a {
  margin: 2px;
  display: inline-flex;
}


.form-card h1 {
  font-size: 14px;
  line-height: 25px;
  text-align: center;
  font-weight: 700;
  margin-bottom: 12px;

}



.forgot-box {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 70px;
}

.radio-option {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 18px 42px;
  border: 6px solid #F2F2F2;
  transition: transform 0.2s ease;
  border-radius: 16px;
  cursor: pointer;
  position: relative;
}

.forgot-btn {
  margin: 0;
}


.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  cursor: pointer;
  z-index: 2;
}

.radio-label {
  font-size: 14px;
  margin-right: 8px;
  font-weight: 600;
}


.custom-radio {
  width: 16px;
  height: 16px;
  border: 1px solid #D5DAE1;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  z-index: 1;
  display: inline-block;
}

.radio-option input[type="radio"]:checked+.custom-radio {
  border-color: #ff6a2b;
}

.radio-option input[type="radio"]:checked+.custom-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  background-color: #ff6a2b;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


.resendCode {
  font-size: 12px;
  font-weight: 600;
  color: #53118C;
  text-align: center;
  margin-top: 24px;
}

.hidden {
  display: none;
}


/* ================== RESPONSIVE ================== */

@media (max-width: 1200px) {
  .container {
    padding-right: 30px;
    padding-left: 30px;
    padding-bottom: 130px;
  }

  .col-right {
    padding: 30px;
  }

  .card {
    padding: 18px 10px;
  }

  .social {
    bottom: 24px;
  }

  .security-tips {
    padding-right: 10px;
    padding-left: 10px;
  }

  .support-container span {
    margin-left: 28px;
  }
}

@media (max-width: 880px) {
  .main-content {
    flex-direction: column;
  }

  .col-left {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .security-tips {
    padding: 20px;
  }

  .security-tips-cols {
    flex-direction: column;
  }

  .support-container {
    margin: 30px auto;
  }

  .security-tips ul {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .seconed-content {
    width: 500px;
    padding: 36px 50px;
  }
}

@media (max-width: 687px) {

  .col-left {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }

  .security-tips {
    padding: 0;
  }

  .seconed-content {
    width: 100%;
    padding: 36px 18px;
    box-shadow: none;
  }

  .col-right {
    padding: 30px 16px;
  }

}

@media (max-width: 425px) {
  .container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .support-container span {
    margin-left: 16px;
  }

  .seconed-content {
    width: 100%;
    padding: 36px 0;
    box-shadow: none;
  }

  .captcha-section {
    flex-direction: column;
  }

  .captcha-refresh,
  .captcha-box {
    width: 100%;
  }

}

.error-box {
    background-color: #fdecea; /* قرمز ملایم */
    color: #b71c1c; /* متن قرمز تیره */
    border: 1px solid #f5c2c0;
    border-radius: 6px;
    padding: 6px 12px;
    margin-top: -10px;
    margin-bottom: 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideInFade 560ms cubic-bezier(.2,.9,.2,1) both;
}
.success-box {
    background-color: #d6ffe2;
    color: #1cb74d;
    border: 1px solid #c0f5da;
    border-radius: 6px;
    padding: 6px 12px;
    margin-top: -10px;
    margin-bottom: 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideInFade 560ms cubic-bezier(.2,.9,.2,1) both;
}

.error-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.tadbir{
    display: flex;
    gap: 8px;
    align-items:center;
    justify-content: center;
    margin: 16px auto

}

@keyframes slideInFade {
    from {
        transform: translateY(-12px) scale(0.98);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
/* انیمیشن خروج: کوچک و محو */
@keyframes scaleOutFade {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    to {
        transform: translateY(-8px) scale(0.98);
        opacity: 0;
    }
}

.tadbir img{
    height: 32px !important
}

a{
    cursor: pointer;
}

#password_strength {
    font-size: x-small;
    border-radius: 8px;
    padding: 0px 8px;
    margin: 8px;
    /*height: 4px;*/
    text-align: center;
}
.strength0 {
    background-color: #EF5350;
}

.strength1 {
    background-color: #ff7600;
}

.strength2 {
    background-color: #ffa500;
}

.strength3 {
    background-color: #ecdb06;
}

.strength4 {
    background-color: #adf58d;
}

.strength5 {
    background-color: #89e68c;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield; /* Firefox */
}