/* Login — Figma 63:3565 @ 1280×1066 (node-verified) */

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

body.login-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.login-page *,
body.login-page *::before,
body.login-page *::after {
  box-sizing: border-box;
}

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

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

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

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

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

/* ── Main: fills space between header and footer ── */
.login-main {
  position: relative;
  flex: 1;
  min-height: 0;
  background:
    radial-gradient(ellipse 70.71% 70.71% at 50% 50%, #e2e8f0 2%, rgba(226, 232, 240, 0) 2%),
    #f7f9fb;
  overflow: hidden;
}

.login-main__pattern {
  position: absolute;
  left: 680px;
  top: 0;
  width: 600px;
  height: 600px;
  opacity: 0.03;
  pointer-events: none;
}

.login-main__pattern::before,
.login-main__pattern::after {
  content: '';
  position: absolute;
  box-sizing: border-box;
  border: 2px solid var(--color-navy, #2c3e50);
}

.login-main__pattern::before {
  width: 400px;
  height: 400px;
  left: 100px;
  top: 100px;
}

.login-main__pattern::after {
  width: 200px;
  height: 200px;
  left: 200px;
  top: 200px;
  border-width: 1px;
}

.login-main__center {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

/* ── Card: 480×703, padding 49, inner 382 ── */
.login-card {
  width: 480px;
  max-width: 100%;
  padding: 49px;
  background: #ffffff;
  border: none;
  outline: 1px solid #e0e3e5;
  outline-offset: -1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.login-card__intro {
  width: 382px;
  max-width: 100%;
}

.login-card__title {
  margin: 0;
  width: 382px;
  max-width: 100%;
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -0.32px;
  color: var(--color-navy, #2c3e50);
}

.login-card__subtitle {
  margin: 8px 0 0;
  width: 382px;
  max-width: 100%;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #4e6073;
}

/* ── Form block: margin-top 32, padding-top 8 ── */
.login-form {
  width: 382px;
  max-width: 100%;
  margin-top: 32px;
  padding-top: 8px;
}

.login-field + .login-field {
  margin-top: 24px;
}

.login-field__label {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.6px;
  color: var(--color-navy, #2c3e50);
}

.login-field__label-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 24px;
  margin-bottom: 8px;
}

.login-field__label-row .login-field__label {
  margin: 8px 0 0;
}

.login-field__link {
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  color: var(--color-primary, #d42f33);
  text-decoration: none;
}

.login-field__link:hover {
  color: var(--color-primary-dark, #b0101e);
}

/* Phone: 382×50, prefix 128px ── */
.login-phone {
  display: flex;
  width: 382px;
  max-width: 100%;
  height: 50px;
  background: #ffffff;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.login-phone__prefix {
  position: relative;
  flex: 0 0 128px;
  width: 128px;
  height: 48px;
  margin: 1px 0 1px 1px;
  display: flex;
  align-items: center;
  padding: 12px 32px 12px 12px;
  border-right: 1px solid rgba(100, 116, 139, 0.3);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--color-navy, #2c3e50);
  background: #ffffff;
}

.login-phone__chevron {
  position: absolute;
  right: 11px;
  top: 15px;
  width: 9px;
  height: 5.55px;
  color: #64748b;
}

.login-phone__input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 48px;
  margin: 1px 1px 1px 0;
}

.login-phone__icon {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 18px;
  height: 18px;
  color: #64748b;
  pointer-events: none;
}

.login-phone__input {
  width: 100%;
  height: 48px;
  padding: 14px 16px 14px 44px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
  color: #191c1e;
}

.login-phone__input::placeholder {
  color: rgba(100, 116, 139, 0.5);
}

.login-phone__input:focus {
  outline: none;
}

/* Password: 382×49 ── */
.login-password {
  position: relative;
  width: 382px;
  max-width: 100%;
  height: 49px;
  background: #ffffff;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.login-password__icon {
  position: absolute;
  left: 13px;
  top: 12.74px;
  width: 16px;
  height: 21px;
  color: #64748b;
  pointer-events: none;
}

.login-password__toggle {
  position: absolute;
  right: 13px;
  top: 17px;
  width: 22px;
  height: 15px;
  padding: 0;
  border: none;
  background: none;
  color: #64748b;
  cursor: pointer;
}

.login-password__input {
  width: 100%;
  height: 47px;
  margin: 1px;
  padding: 14px 48px 14px 44px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
  color: #191c1e;
}

.login-password__input::placeholder {
  color: rgba(100, 116, 139, 0.5);
}

.login-password__input:focus {
  outline: none;
}

/* Primary: 382×56, margin-top 24 ── */
.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 382px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}

.login-form .login-btn--primary {
  margin-top: 24px;
  height: 56px;
  background: var(--color-primary, #d42f33);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

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

.login-btn--primary svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Divider: 382×32, margin-top 32 ── */
.login-divider {
  width: 382px;
  max-width: 100%;
  height: 32px;
  margin: 32px auto 0;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.login-divider__line {
  width: 165.83px;
  height: 1px;
  background: #e0e3e5;
  flex-shrink: 0;
}

.login-divider__line--right {
  width: 165.84px;
}

.login-divider__text {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.6px;
  color: #64748b;
}

/* SSO: 382×58, margin-top 32 ── */
.login-btn--sso {
  margin: 32px auto 0;
  height: 58px;
  background: #ffffff;
  border: 1px solid var(--color-navy, #2c3e50);
  color: var(--color-navy, #2c3e50);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.login-btn--sso:hover {
  background: #f2f4f6;
}

/* Language: margin-top 32, centered in 382 ── */
.login-lang-wrap {
  width: 382px;
  max-width: 100%;
  height: 24px;
  margin: 32px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-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;
}

.login-lang__icon {
  width: 15px;
  height: 15px;
  margin-top: 4.5px;
  color: #4e6073;
}

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

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

.login-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;
}

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

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

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

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

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

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

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

  .login-card {
    padding: 32px 24px;
  }

  .login-card__intro,
  .login-form,
  .login-phone,
  .login-password,
  .login-btn,
  .login-divider,
  .login-lang-wrap,
  .login-card__title,
  .login-card__subtitle {
    width: 100%;
  }
}
