@import url("../../components/brand/brand.css");
@import url("../../components/hero-split/hero-split.css");
@import url("../../components/input-text/input-text.css");
@import url("../../components/password-field/password-field.css");
@import url("../../components/button/button.css");

body.auth-page {
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: #fff;
  color: #323130;
}

.page-wrap {
  padding: 25px;
  min-height: 100vh;
  box-sizing: border-box;
}

.hero-split--login {
  direction: ltr;
  min-height: 100vh;
  padding: 0;
}

/* Figma 1001:5265 — 720×974 hero panel */
.hero-split--login .hero-split__visual--figma {
  position: relative;
  border-radius: 44px;
  overflow: hidden;
  aspect-ratio: 720 / 974;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.hero-split--login .hero-split__media {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.hero-split--login .hero-split__visual--figma .hero-split__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.hero-split--login .hero-split__visual--figma .hero-split__scrim {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.hero-split__deco {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-split__deco img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none !important;
}

/* Figma: left 644.08px, top -63px, 102×126, rotate 23.91deg */
.hero-split__deco--v20 {
  left: 89.46%;
  top: -6.47%;
  width: 14.17%;
  aspect-ratio: 102 / 127;
  transform: rotate(23.91deg);
}

/* Figma: left 636px, top 468px, 167×206, rotate 20.53deg */
.hero-split__deco--v21-mid {
  left: 88.33%;
  top: 48.05%;
  width: 23.19%;
  aspect-ratio: 167 / 207;
  transform: rotate(20.53deg);
}

/* Figma: left 174px, top 898px, rotate 20.53deg */
.hero-split__deco--v18 {
  left: 24.17%;
  top: 92.2%;
  width: 23.19%;
  aspect-ratio: 167 / 207;
  transform: rotate(20.53deg);
}

/* Figma: left 269px, top 876px, rotate 20.53deg */
.hero-split__deco--v21-bl {
  left: 37.36%;
  top: 89.94%;
  width: 23.19%;
  aspect-ratio: 167 / 207;
  transform: rotate(20.53deg);
}

/* Figma: left 72px, top 662px, width 563px */
.hero-split--login .hero-split__copy {
  position: absolute;
  left: 10%;
  top: 67.97%;
  width: 78.19%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 4px;
  text-align: center;
  direction: rtl;
  z-index: 3;
  box-sizing: border-box;
}

.hero-split--login .hero-split__title {
  margin: 0;
  color: #fff;
  font-family: "IBM Plex Sans Arabic", var(--font-sans), sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.36px;
  max-width: 563px;
}

.hero-split--login .hero-split__subtitle {
  margin: 0;
  color: #d1d1d1;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  max-width: 563px;
}

.hero-split--login .hero-split__panel {
  position: relative;
  overflow: hidden;
}

.login-panel__decoration {
  position: absolute;
  left: 50%;
  top: -120px;
  width: min(120%, 900px);
  max-width: none !important;
  transform: translateX(-18%) rotate(10.75deg);
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}

.hero-split--login .hero-split__panel-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: min(33.125rem, 100%);
}

.login-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.login-form__heading {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  color: #323130;
  text-align: right;
}

.login-form__separator {
  margin: 0;
  border: none;
  height: 1px;
  background: #e7e7e7;
  width: 100%;
}

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

.login-form .btn-primary {
  margin-top: 0;
}

.form-feedback {
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--color-danger) 35%, transparent);
  background-color: color-mix(in srgb, var(--color-danger) 10%, transparent);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-danger);
  text-align: right;
}

.form-feedback[hidden] {
  display: none !important;
}

.login-page-loading {
  margin: 0 0 16px;
  padding: 8px 0;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: #737373;
  text-align: center;
}

.login-page-loading[hidden] {
  display: none !important;
}

#login-form[hidden] {
  display: none !important;
}

@media (max-width: 959px) {
  .hero-split--login .hero-split__copy {
    left: 5%;
    width: 90%;
    top: auto;
    bottom: 56px;
  }

  .hero-split--login .hero-split__title {
    font-size: 24px;
  }

  .hero-split__deco {
    display: none;
  }

  .login-panel__decoration {
    display: none;
  }
}
