/* Register */

.sec-register {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    background: #00041d url("../../media/image/png/bg-form.png") center center / cover no-repeat;
    padding: 20px 20px 20px 0;
}

.sec-register .left {
    width: 100%;
    height: auto;
    min-height: 93vh;
    max-height: 93vh;
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.sec-register .left .left-img {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: auto;
}

/* تصاویر ستون چپ: ۸۵٪ عرض؛ آیکون‌های شناور اندازهٔ ثابت خودشان را دارند (nth-child قوی‌تر است) */
.sec-register .img-fluid {
    width: 85%;
}

.sec-register .robot-img .img-fluid {
    display: block;
    margin-inline: auto;
}

.left .left-img .robot-img ,
.left-img .icon-socials {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50% , -50%);
    z-index: 1;
}

.left-img .icon-socials {
    width: 100%;
    height: 100%;
}

.left-img .icon-socials .icon-socials-inner {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-socials-inner .item {
    position: absolute;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: contain;
}

.icon-socials-inner .item:nth-child(1) {
    left: 16%;
    top: 50%;
    transform: translateY(-20%);
    width: 200px;
    height: 200px;
}

.icon-socials-inner .item:nth-child(2) {
    right: 20%;
    top: -230px;
    width: 120px;
    height: 120px;
}

.icon-socials-inner .item:nth-child(3) {
    right: 15%;
    top: 50%;
    transform: translateY(10%);
    width: 100px;
    height: 100px;
}

.icon-socials-inner .item:nth-child(4) {
    left: -2vw;
    top: 50%;
    transform: translateY(-90%);
    width: 120px;
    height: 120px;
}

.left .left-footer {
    width: 95%;
    height: auto;
    position: relative;
    z-index: 0;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    justify-content: center;
    flex-direction: column;
    margin-top: auto;
}

.left-footer .footer-copyright {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer-copyright > h5 {
    font-size: 14px;
    font-weight: 400;
    text-transform: capitalize;
    color: #fff;
}

.left-footer .footer-content {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    z-index: 0;
    display: flex;
    align-items: end;
    justify-content: center;
    flex-direction: row-reverse;
    gap: 20px;
}

.bamyar-slider-container,
.bamyar-slider-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.bamyar-slider-container {
    flex: 1;
    min-width: 0;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bamyar-slider-container .hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.bamyar-slider-container .swiper {
    width: 100%;
    height: 100%;
}

.bamyar-slider-container .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: right;
    padding-bottom: 24px;
    background: transparent;
}

.bamyar-slider-container .slide-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.4;
    opacity: 0;
    perspective: 400px;
}

.bamyar-slider-container .slide-title .word {
    display: inline-block;
    margin-left: 0.25em;
    transform-origin: center bottom;
}

.bamyar-slider-container .slide-subtitle {
    font-size: 0.92rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    opacity: 0;
}

.bamyar-slider-container .swiper-pagination-custom {
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: auto !important;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
}

.bamyar-slider-container .swiper-pagination-custom .swiper-pagination-bullet {
    width: 5px;
    height: 5px;
    margin: 0 !important;
    background-color: #ffffff;
    opacity: 0.3;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.35s ease;
}

.bamyar-slider-container .swiper-pagination-custom .swiper-pagination-bullet:hover {
    opacity: 0.7;
}

.bamyar-slider-container .swiper-pagination-custom .swiper-pagination-bullet-active {
    width: 22px;
    height: 6px;
    border-radius: 10px;
    background-color: #ffffff;
    opacity: 1;
}

/* Form */

.sec-register .right {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.sec-register .right .right-form {
    width: 100%;
    max-width: 520px;
    background-color: #fff;
    border-radius: 32px;
    padding: 40px;
    position: relative;
    overflow: visible;
}

.right-form .register-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Form Header */

.register-form .register-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.register-header h1 {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.register-header h1 .emoji {
    font-size: 28px;
    display: inline-block;
    transform-origin: 70% 70%;
}

.register-form .register-fields {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.register-fields .input-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    opacity: 1;
    will-change: transform, opacity;
}

.input-box .input-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    position: absolute;
    top: 0;
    right: 24px;
    transform: translateY(-50%);
    z-index: 2;
    background: #fff;
    padding: 0 8px;
    pointer-events: none;
    letter-spacing: -0.2px;
    transform-origin: right center;
}

.input-box .input-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.input-wrap .input-field {
    width: 100%;
    height: 60px;
    padding: 0 20px 0 54px;
    border-radius: 16px;
    background: #fff;
    outline: 0;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    font-size: 15px;
    direction: rtl;
    font-weight: 500;
    will-change: border-color;
    box-shadow: none !important;
}

/* پر‌شدن خودکار مرورگر (گوگل/کروم): پس‌زمینهٔ آبی پیش‌فرض مرورگر با رنگ عادی فیلد (سفید) پوشانده می‌شود */
.input-wrap .input-field:-webkit-autofill,
.input-wrap .input-field:-webkit-autofill:hover,
.input-wrap .input-field:-webkit-autofill:focus,
.input-wrap .input-field:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: var(--text-dark);
    caret-color: var(--text-dark);
    transition: background-color 600000s 0s;
}

.input-field::placeholder {
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 400;
    opacity: 0.7;
    font-family: "Pelak";
}

.input-wrap .input-icon {
    position: absolute;
    left: 18px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.input-wrap .input-icon.is-clickable {
    pointer-events: auto;
    cursor: pointer;
}

.input-wrap .input-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    will-change: transform, stroke;
}

.input-wrap .input-icon.is-clickable:hover svg {
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.input-box .input-message {
    font-size: 11.5px;
    margin-top: 6px;
    margin-right: 8px;
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    transform-origin: top center;
    will-change: transform, opacity, height;
}

.input-box .input-message svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Form Footer */

.register-form .register-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.register-footer .register-button {
    width: 100%;
    height: 65px;
    margin-inline: auto;
    background: var(--primary);
    border: none;
    border-radius: 20px;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: "Pelak";
    outline: 0;
    box-shadow: 0 10px 25px color-mix(in srgb, var(--primary) 25%, transparent);
    position: relative;
    will-change: transform, box-shadow, background-color;
}

.register-button .btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.register-footer p {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.register-footer p a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-right: 4px;
    display: inline-block;
    will-change: transform;
}

.register-footer p a:hover {
    text-decoration: underline;
}

.no-gsap .input-wrap .input-field {
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.no-gsap .input-box .input-label {
    transition: color 0.3s ease;
}

.no-gsap .input-box .input-icon svg {
    transition: stroke 0.3s ease;
}

.no-gsap .register-button {
    transition: background-color 0.35s, transform 0.35s, box-shadow 0.35s;
}

.no-gsap .register-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 40%, transparent);
}

.no-gsap .input-box.is-invalid .input-message {
    color: var(--error);
    display: flex;
}

.no-gsap .input-box.is-valid .input-message {
    color: var(--success);
    display: flex;
}

.forgot-password-wrap {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
    padding-left: 15px;
}

.forgot-password-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: var(--primary);
}

.forgot-password-link svg {
    stroke: currentColor;
    width: 15px;
    height: 15px;
}

/* ----------------------------------------------------
   استایل‌های اختصاصی فرم احراز هویت (OTP / Verification)
   ---------------------------------------------------- */
.otp-header-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.otp-header-box h1 {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.otp-subtitle-text {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 500;
  text-align: center;
  margin-bottom: 18px;
  line-height: 1.6;
}

.otp-subtitle-text strong {
  color: #0f172a;
  font-weight: 700;
  direction: ltr;
  display: inline-block;
  margin: 0 3px;
}

.edit-phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  margin-bottom: 28px;
  transition: all 0.25s ease;
}

.edit-phone-link:hover {
  color: var(--primary);
}

.edit-phone-link svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* ۵ باکس ورودی کد تایید */
.otp-boxes-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  direction: ltr; /* جهت چپ به راست برای ارقام */
  width: 100%;
  margin-bottom: 30px;
}

.otp-single-box {
  width: 58px;
  height: 62px;
  border-radius: 16px;
  border: 2px solid var(--border-color);
  background-color: #ffffff;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  outline: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.otp-single-box:focus {
  border-color: var(--primary);
  transform: scale(1.05);
}

.otp-single-box.is-filled {
  border-color: var(--primary);
  background-color: color-mix(in srgb, var(--primary) 2%, transparent);
}

.resend-link-wrap {
  margin-top: 6px;
}

.resend-link-wrap a {
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  text-decoration: none;
  transition: color 0.25s ease;
}

.resend-link-wrap a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* All Media Queris Main Styles */

@media (max-width: 1200px) {
    .icon-socials-inner .item:nth-child(4) {
        display: none;
    }
    .sec-register {
        background-image: none;
        padding: 0;
    }
    .sec-register .right {
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .register-container {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .register-container {
        grid-template-columns: 1fr;
        justify-content: center;
        gap: 0;
    }
    .sec-register .left {
        display: none;
    }
    .sec-register .right {
        width: 100%;
        justify-content: center;
    }
    .sec-register .right .right-form {
        max-width: 480px;
        padding: 30px 24px;
        border-radius: 28px;
    }
    .register-form .register-header h1 {
        font-size: 21px;
    }
    .input-wrap .input-field {
        height: 56px;
        font-size: 14px;
    }
    .input-wrap .input-icon {
        left: 16px;
        width: 20px;
        height: 20px;
    }
    .register-footer .register-button {
        height: 56px;
        font-size: 15px;
    }
    .otp-single-box { width: 48px; height: 54px; font-size: 19px; border-radius: 12px; }
    .otp-boxes-wrapper { gap: 8px; }
}

@media (max-width: 375px) {
    .sec-register .right .right-form {
        padding: 24px 16px;
        border-radius: 20px;
    }
    .register-form .register-fields {
        gap: 20px;
    }
    .input-wrap .input-field {
        height: 52px;
        padding: 0 15px 0 46px;
    }
    .input-wrap .input-icon {
        left: 14px;
    }
    .input-box .input-label {
        right: 15px;
        font-size: 12.5px;
    }
    .otp-single-box { width: 42px; height: 48px; font-size: 17px; }
    .otp-boxes-wrapper { gap: 6px; }
}

@media (max-width: 640px) {
    .bamyar-slider-container .slide-title {
        font-size: 1.05rem;
    }
    .bamyar-slider-container .slide-subtitle {
        font-size: 0.82rem;
    }
}