/* Create Account — Figma 63:3846 @ 1280×1069 (node-verified) */

html:has(body.signup-page) {
  height: 100%;
  overflow: hidden;
}

body.signup-page {
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #f7f9fb;
  font-family: var(--font-family);
  color: var(--color-navy, #2c3e50);
}

body.signup-page *,
body.signup-page *::before,
body.signup-page *::after {
  box-sizing: border-box;
}

/* ── Announcement: 32px ── */
.signup-page .announcement {
  flex-shrink: 0;
  height: 32px;
  background: var(--color-navy, #2c3e50);
  text-transform: uppercase;
}

/* ── Header: 90px, logo only ── */
.signup-header {
  flex-shrink: 0;
  height: 90px;
  background: #ffffff;
  border-bottom: 1px solid #e0e3e5;
}

.signup-header__inner {
  width: 100%;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 16px 39.99px 16px 40px;
  display: flex;
  align-items: center;
}

.signup-header__logo {
  display: block;
  width: 130px;
  height: 57px;
  line-height: 0;
}

.signup-header__logo img {
  display: block;
  width: 130px;
  height: 57px;
  object-fit: contain;
}

/* ── Main: flex fill, center card ── */
.signup-main {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #f7f9fb;
  overflow: hidden;
}

.signup-main__center {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

/* ── Card: 1000×680, border var(--color-border-accent, #e4beba) ── */
.signup-card {
  display: grid;
  grid-template-columns: 416px 584px;
  width: 1000px;
  max-width: 100%;
  height: 680px;
  background: #ffffff;
  border: 1px solid var(--color-border-accent, #e4beba);
  overflow: hidden;
}

/* ── Left panel: 416×678, var(--color-navy, #2c3e50) ── */
.signup-brand {
  position: relative;
  padding: 40px;
  background: var(--color-navy, #2c3e50);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.signup-brand__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 32px 32px;
}

.signup-brand__top,
.signup-brand__middle,
.signup-brand__badge {
  position: relative;
  z-index: 1;
}

.signup-brand__name {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 32px;
  letter-spacing: -0.6px;
  color: var(--color-primary, #d42f33);
}

.signup-brand__eyebrow {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #c1c7cf;
}

.signup-brand__middle {
  margin-top: 16px;
}

.signup-brand__headline {
  margin: 0;
  max-width: 336px;
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.32px;
  color: #ffffff;
}

.signup-brand__desc {
  margin: 16px 0 0;
  max-width: 336px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #c1c7cf;
}

.signup-brand__badge {
  display: flex;
  align-items: center;
  gap: 17px;
  width: 240px;
  max-width: 100%;
  height: 64px;
  padding: 0 17px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(82, 89, 95, 0.3);
}

.signup-brand__badge-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-primary, #d42f33);
}

.signup-brand__badge-text {
  font-size: 14px;
  font-weight: 700;
  line-height: 17.5px;
  letter-spacing: -0.7px;
  color: #ffffff;
}

/* ── Right panel: 584×678, padding 48 ── */
.signup-form-panel {
  display: flex;
  flex-direction: column;
  padding: 48px 48px 40px;
  min-height: 0;
}

.signup-form-panel__head {
  flex-shrink: 0;
}

.signup-form-panel__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: var(--color-navy, #2c3e50);
}

.signup-form-panel__subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #64748b;
}

.signup-form {
  flex: 1;
  min-height: 0;
  width: 486px;
  max-width: 100%;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Fields ── */
.signup-field {
  display: flex;
  flex-direction: column;
}

.signup-field__label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-navy, #2c3e50);
}

.signup-field__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.signup-input {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--color-border-accent, #e4beba);
}

.signup-input--text {
  height: 49px;
}

.signup-input--email {
  height: 55px;
}

.signup-input--password {
  height: 49px;
}

.signup-input__icon {
  position: absolute;
  left: 13px;
  color: #64748b;
  pointer-events: none;
}

.signup-input__icon--user {
  width: 12px;
  height: 12px;
  top: 18.5px;
}

.signup-input__icon--mail {
  width: 15px;
  height: 13px;
  top: 21px;
}

.signup-input__icon--lock {
  width: 12px;
  height: 16px;
  top: 16.5px;
}

.signup-input__control {
  width: 100%;
  height: 100%;
  padding: 0 16px 0 41px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
  color: #191c1e;
}

.signup-input__control::placeholder {
  color: #6b7280;
}

.signup-input__control:focus {
  outline: none;
}

.signup-input__toggle {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 15px;
  padding: 0;
  border: none;
  background: none;
  color: #64748b;
  cursor: pointer;
}

/* Phone: prefix 77px ── */
.signup-phone {
  display: flex;
  width: 100%;
  height: 50px;
}

.signup-phone__prefix {
  flex: 0 0 77px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--color-border-accent, #e4beba);
  border-right: none;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: #191c1e;
}

.signup-phone__flag {
  width: 18px;
  height: 18px;
  border-radius: 2px;
  object-fit: cover;
}

.signup-phone__input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
}

.signup-phone__input-wrap .signup-input {
  height: 100%;
  border-left: none;
}

.signup-phone__input-wrap .signup-input__control {
  padding-left: 13px;
}

/* Terms ── */
.signup-terms {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.signup-terms__checkbox {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  accent-color: var(--color-primary, #d42f33);
  border: 1px solid var(--color-border-accent, #e4beba);
}

.signup-terms__text {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 19.5px;
  color: #64748b;
}

/* Submit ── */
.signup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0;
  border: none;
  background: var(--color-primary, #d42f33);
  color: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
}

.signup-btn:hover {
  background: var(--color-primary-dark, #b0101e);
}

.signup-btn svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Footer row inside form panel ── */
.signup-form-panel__foot {
  flex-shrink: 0;
  width: 486px;
  max-width: 100%;
  margin-top: 32px;
  padding-top: 25px;
  border-top: 1px solid #eceef0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.signup-form-panel__login {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #64748b;
}

.signup-form-panel__login a {
  font-weight: 700;
  color: var(--color-navy, #2c3e50);
  text-decoration: none;
}

.signup-form-panel__login a:hover {
  color: var(--color-primary, #d42f33);
}

.signup-lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'IBM Plex Sans Arabic', var(--font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #4e6073;
  text-decoration: none;
}

.signup-lang__icon {
  width: 15px;
  height: 15px;
  color: #4e6073;
}

.signup-lang:hover {
  color: var(--color-navy, #2c3e50);
}

/* ── Footer ── */
.signup-footer {
  flex-shrink: 0;
  background: #e0e3e5;
  border-top: 1px solid var(--color-border-accent, #e4beba);
}

.signup-footer__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 40px;
  border-top: 1px solid var(--color-border-accent, #e4beba);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.signup-footer__copy {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: #64748b;
}

.signup-footer__legal {
  display: flex;
  gap: 24px;
}

.signup-footer__legal a {
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #64748b;
  text-decoration: none;
}

.signup-footer__legal a:hover {
  color: var(--color-navy, #2c3e50);
}

/* Short viewports */
@media (max-height: 820px) {
  .signup-card {
    transform: scale(0.92);
    transform-origin: center center;
  }
}

@media (max-height: 720px) {
  .signup-card {
    transform: scale(0.82);
  }
}

@media (max-width: 1040px) {
  .signup-card {
    grid-template-columns: 1fr;
    height: auto;
    max-height: calc(100vh - 188px);
    overflow-y: auto;
  }

  .signup-brand {
    min-height: 320px;
  }

  .signup-form-panel {
    padding: 32px 24px;
  }

  .signup-form,
  .signup-form-panel__foot {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .signup-header__inner,
  .signup-footer__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .signup-field__row {
    grid-template-columns: 1fr;
  }
}
