@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter/Inter-VariableFont_slnt,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Inter", sans-serif !important;
}
a {
  text-decoration: none !important;
}

.login-wrapper {
  min-height: 100vh;
  background-color: #F7F7F8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  position: relative;
  z-index: 0;
  overflow: hidden;
}
.wrapper-content {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.login-card {
  width: 520px;
  max-width: 100%;
  background: linear-gradient(180deg, rgba(255, 222, 222, 0.30) -30.26%, rgba(255, 255, 255, 0.87) 16.46%);
  border-radius: 18px;
  border: 0.778px solid #FFF;
  padding: 45px 60px;
  position: relative;
  z-index: 1;
}

.glow-orbit {
  --glow-size: 520px;
  --red-x: -210px;
  --red-y: 90px;
  --blue-x: 210px;
  --blue-y: -110px;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  z-index: 0;
  pointer-events: none;
  animation: glowOrbit 2.5s ease-in-out infinite alternate;
  will-change: transform;
}
.glow {
  position: absolute;
  width: var(--glow-size);
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  user-select: none;
}
.glow-red {
  left: var(--red-x);
  top: var(--red-y);
}
.glow-blue {
  left: var(--blue-x);
  top: var(--blue-y);
}
@keyframes glowOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(180deg); }
}
@media (max-width: 575.98px) {
  .glow-orbit {
    --glow-size: 340px;
    --red-x: -120px;
    --red-y: 70px;
    --blue-x: 120px;
    --blue-y: -80px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .glow-orbit { animation: none; }
}

.header-wrapper {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: space-between;
  margin-bottom: 35px;
}
.header-content .h-title {
  font-size: 25px;
  color: rgba(15, 24, 34, 0.90);
  font-weight: 600;
  line-height: 28.75px;
  margin-bottom: 12px;
}
.header-content .h-subtitle {
  font-size: 16px;
  line-height: 18.4px;
  color: rgba(15, 24, 34, 0.90);
  font-weight: 500;
}
.main-img {
  height: auto;
  max-height: 85px;
  max-width: 100%;
  flex-shrink: 0;
}

.form-field {
  margin-bottom: 30px;
}
.form-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(15, 24, 34, 0.90);
  margin-bottom: 10px;
}
.input-wrap {
  position: relative;
}
.input-wrap .input-icon {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  pointer-events: none;
}
.input-wrap .form-control {
  border: 0;
  box-shadow: none !important;
  background-color: rgba(121, 126, 141, 0.05) !important;
  border-radius: 10px;
  height: 54px;
  padding: 10px 20px 10px 52px;
  font-weight: 500;
  font-size: 15px;
  color: #000 !important;
  transition: background-color .2s;
}
.input-wrap.has-toggle .form-control {
  padding-right: 52px;
}
.input-wrap .form-control::placeholder {
  color: #C6C8C8;
}
.input-wrap .form-control:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #F4F4F6 inset !important;
  -webkit-text-fill-color: #000;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #000;
  font-size: 19px;
  padding: 4px 6px;
  line-height: 1;
  border-radius: 6px;
}

.flex-box {
  display: flex !important;
  align-items: center;
}
.content-wrapper {
  justify-content: space-between;
  margin-top: 10px;
  margin-bottom: 30px;
}

.form-check-input {
  width: 11px;
  height: 11px;
  margin-top: 0;
  border: 1px solid #6B7793;
  border-radius: 3px;
  cursor: pointer;
}
.gap-2 {
  gap: 5px;
}
.form-check-input:checked {
  background-color: #3d3d8f;
  border-color: #3d3d8f;
}
.form-check-input:focus {
  box-shadow: none !important;
}
.form-check-label,
.forgot-link {
  font-size: 12px;
  font-weight: 400;
  color: rgba(15, 24, 34, 0.60);
  cursor: pointer;
}
.forgot-link:hover {
  color: #6B7793;
  text-decoration: underline !important;
}

.submit-btn {
  font-weight: 500;
  font-size: 16px;
  color: #FFF;
  padding: 10px 20px;
  border-radius: 10px;
  background-color: #EF001D;
  justify-content: center;
  width: 100%;
  border: 0;
}
.submit-btn:hover,
.submit-btn:focus {
  color: #FFF;
}

.back-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(15, 24, 34, 0.60);
}
.back-link:hover {
  color: #6B7793;
  text-decoration: underline !important;
}

.field-hint {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(15, 24, 34, 0.60);
}
.field-error {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #EF001D;
}
.field-error:empty {
  display: none;
}
.form-alert.validation-summary-valid {
  display: none;
}
.form-alert.validation-summary-errors {
  margin-bottom: 25px;
  padding: 12px 16px;
  border-radius: 10px;
  background-color: rgba(239, 0, 29, 0.06);
  color: #EF001D;
  font-size: 13px;
}
.form-alert ul {
  margin: 0;
  padding-left: 18px;
}

[dir="rtl"] .input-wrap .input-icon {
  left: auto;
  right: 20px;
}
[dir="rtl"] .input-wrap .form-control {
  padding: 10px 52px 10px 20px;
}
[dir="rtl"] .input-wrap.has-toggle .form-control {
  padding-left: 52px;
}
[dir="rtl"] .toggle-password {
  right: auto;
  left: 14px;
}
[dir="rtl"] .form-alert ul {
  padding-left: 0;
  padding-right: 18px;
}

@media (max-width: 575.98px) {
  .login-card {
    padding: 45px 35px;
  }
  .header-content .h-title {
    font-size: 24px;
  }
  .header-content .h-subtitle {
    font-size: 13px;
  }
  .main-img {
    max-height: 77px;
  }
  .input-wrap .form-control {
    font-size: 12px;
    padding: 10px 42px 10px 52px;
  }
  [dir="rtl"] .input-wrap .form-control {
    padding: 10px 52px 10px 42px;
  }
  .login-wrapper {
    padding: 20px 0;
  }
}
