.refresh-login {
  --pwr-blue: #00b2ff;
  --mind-navy: #0b0f1a;
  --performance-slate: #1f2a3d;
  --clarity-grey: #e5eaf2;
  --pure-white: #ffffff;
  --ink-soft: #8793a7;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  color: var(--pure-white);
  background: var(--mind-navy);
  font-family: "Montserrat", "Cairo", sans-serif;
}

.refresh-login *,
.refresh-login *::before,
.refresh-login *::after {
  box-sizing: border-box;
}

.refresh-header {
  position: relative;
  z-index: 3;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(24px, 6vw, 94px);
  background: var(--mind-navy);
}

.refresh-logo {
  display: block;
  width: clamp(164px, 18vw, 220px);
  height: auto;
  object-fit: contain;
}

.refresh-language {
  display: flex;
  align-items: center;
  gap: 11px;
  direction: ltr;
  font-family: "Montserrat", "Cairo", sans-serif;
}

.refresh-language a {
  position: relative;
  border: 0;
  padding: 9px 4px;
  color: #9aa5b8;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: color 180ms ease;
}

.refresh-language a::after {
  content: "";
  position: absolute;
  height: 2px;
  inset-inline: 4px;
  bottom: 1px;
  background: var(--pwr-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.refresh-language a:hover,
.refresh-language a.selected {
  color: var(--pure-white);
}

.refresh-language a.selected::after {
  transform: scaleX(1);
}

.refresh-language a:focus-visible {
  outline: 2px solid var(--pwr-blue);
  outline-offset: 4px;
  border-radius: 2px;
}

.refresh-language > span {
  width: 1px;
  height: 13px;
  background: #394254;
}

.refresh-main {
  width: min(100%, 1500px);
  flex: 1;
  min-height: 630px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr);
  margin: 0 auto;
  padding: 0 clamp(18px, 3.1vw, 48px) 24px;
}

.refresh-story {
  position: relative;
  min-height: 630px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(48px, 6.4vw, 91px) clamp(34px, 4.3vw, 64px) 34px;
  border: 1px solid rgba(229, 234, 242, .09);
  border-inline-end: 0;
  border-radius: 4px 0 0 4px;
  background:
    radial-gradient(ellipse at 78% 56%, rgba(0, 178, 255, .105), transparent 39%),
    var(--mind-navy);
}

.refresh-story::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .25;
  background-image:
    linear-gradient(rgba(229, 234, 242, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 234, 242, .04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(115deg, transparent 14%, #000 73%);
}

.story-content,
.signal-visual,
.story-signoff {
  position: relative;
  z-index: 1;
}

.story-eyebrow {
  margin: 0 0 40px;
  color: #aeb9c8;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .21em;
}

.story-platform {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--pwr-blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
}

.story-platform::before {
  content: "";
  width: 23px;
  height: 1px;
  background: currentColor;
}

.refresh-story h1 {
  max-width: 570px;
  margin: 0;
  white-space: pre-line;
  color: var(--pure-white);
  font-size: clamp(36px, 3.75vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.065em;
  animation: pwr-reveal 650ms both;
}

.story-description {
  max-width: 400px;
  margin: 23px 0 0;
  color: #b5c0d0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
  animation: pwr-reveal 650ms 90ms both;
}

.signal-visual {
  position: relative;
  height: 190px;
  margin-top: auto;
  overflow: hidden;
  border-bottom: 1px solid rgba(229, 234, 242, .11);
  animation: pwr-reveal 700ms 150ms both;
}

.signal-visual::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 150px;
  bottom: 0;
  inset-inline-start: 15%;
  border: 1px solid rgba(0, 178, 255, .18);
  border-bottom: 0;
  border-radius: 220px 220px 0 0;
}

.signal-visual::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 105px;
  bottom: 0;
  inset-inline-start: 25%;
  border: 1px solid rgba(0, 178, 255, .17);
  border-bottom: 0;
  border-radius: 180px 180px 0 0;
}

.signal-vertical {
  position: absolute;
  top: 17px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(229, 234, 242, .12));
}

.signal-vertical-one { inset-inline-start: 28%; }
.signal-vertical-two { inset-inline-start: 72%; }

.signal-arc {
  position: absolute;
  width: 7px;
  height: 7px;
  z-index: 1;
  border: 1px solid var(--pwr-blue);
  border-radius: 50%;
  background: var(--mind-navy);
  box-shadow: 0 0 0 5px rgba(0, 178, 255, .09);
}

.signal-arc-one { inset-inline-start: 28%; top: 51px; }
.signal-arc-two { inset-inline-start: 72%; top: 87px; }

.signal-line {
  position: absolute;
  width: 100%;
  height: 110px;
  inset-inline-start: 0;
  bottom: 27px;
  overflow: visible;
}

.signal-line path {
  stroke: rgba(0, 178, 255, .62);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.signal-line circle {
  fill: var(--mind-navy);
  stroke: var(--pwr-blue);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.signal-caption {
  position: absolute;
  z-index: 2;
  inset-inline-start: 0;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #9eabc0;
  font-size: 9px;
  letter-spacing: .045em;
}

.signal-caption-rule {
  width: 16px;
  height: 1px;
  background: var(--pwr-blue);
}

.story-signoff {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 21px;
  color: #8793a7;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .2em;
}

.signoff-line {
  width: 23px;
  height: 1px;
  background: var(--pwr-blue);
}

.refresh-form-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 44px clamp(28px, 5.4vw, 76px) 25px;
  color: var(--mind-navy);
  background: var(--clarity-grey);
  border-radius: 0 4px 4px 0;
}

.form-wrap {
  width: min(100%, 390px);
  margin: auto 0;
}

.form-heading {
  margin-bottom: 31px;
}

.form-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #546277;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

.form-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pwr-blue);
  box-shadow: 0 0 0 4px rgba(0, 178, 255, .12);
}

.form-heading h2 {
  margin: 0;
  color: var(--mind-navy);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.055em;
}

.form-heading > p:last-child {
  margin: 9px 0 0;
  color: #5f6b7c;
  font-size: 12px;
  line-height: 1.7;
}

.refresh-field {
  margin-bottom: 19px;
}

.refresh-field label {
  display: block;
  margin-bottom: 8px;
  color: #273449;
  font-size: 11px;
  font-weight: 700;
}

.refresh-field input {
  width: 100%;
  height: 51px;
  padding: 0 15px;
  border: 1px solid #c5cfdd;
  border-radius: 3px;
  outline: none;
  color: var(--mind-navy);
  background: rgba(255, 255, 255, .78);
  font-family: inherit;
  font-size: 12px;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.refresh-field input::placeholder {
  color: #8994a4;
}

.refresh-field input:hover {
  border-color: #7c8ba1;
}

.refresh-field input:focus {
  border-color: #007fb8;
  background: var(--pure-white);
  box-shadow: 0 0 0 3px rgba(0, 178, 255, .16);
}

.password-control {
  position: relative;
}

.password-control input {
  padding-inline-end: 50px;
}

.password-visibility {
  position: absolute;
  top: 50%;
  inset-inline-end: 10px;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 2px;
  color: #5c6a7e;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 160ms ease, background-color 160ms ease;
}

.password-visibility:hover {
  color: #006f9f;
  background: rgba(0, 178, 255, .1);
}

.password-visibility:focus-visible {
  outline: 2px solid #007fb8;
  outline-offset: 2px;
}

.password-visibility svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.refresh-submit {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3px;
  padding: 0 17px 0 19px;
  border: 0;
  border-radius: 3px;
  color: var(--pure-white);
  background: var(--mind-navy);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.refresh-submit:hover {
  transform: translateY(-2px);
  background: #17243a;
  box-shadow: 0 8px 18px rgba(11, 15, 26, .16);
}

.refresh-submit:active {
  transform: translateY(0);
}

.refresh-submit:focus-visible {
  outline: 3px solid #007fb8;
  outline-offset: 3px;
}

.refresh-submit svg {
  width: 18px;
  stroke: var(--pwr-blue);
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.refresh-submit:hover svg {
  transform: translateX(3px);
}

.is-arabic .refresh-submit svg {
  transform: rotate(180deg);
}

.is-arabic .refresh-submit:hover svg {
  transform: rotate(180deg) translateX(3px);
}

.refresh-footer {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #596679;
  text-align: center;
  font-size: 8px;
  line-height: 1.7;
}

.footer-divider {
  width: 1px;
  height: 11px;
  background: #aeb9c8;
}

.is-arabic {
  font-family: "Cairo", "Montserrat", sans-serif;
}

.is-arabic .refresh-language {
  font-family: "Montserrat", "Cairo", sans-serif;
}

.is-arabic .story-eyebrow {
  letter-spacing: 0;
  font-size: 11px;
}

.is-arabic .refresh-story h1 {
  letter-spacing: 0;
  line-height: 1.28;
}

.is-arabic .story-description {
  line-height: 1.95;
  font-size: 14px;
}

.is-arabic .story-platform {
  letter-spacing: 0;
  font-size: 11px;
}

.is-arabic .story-signoff {
  font-family: "Montserrat", sans-serif;
  direction: ltr;
}

.is-arabic .signal-caption {
  font-size: 10px;
}

.is-arabic .form-kicker {
  letter-spacing: 0;
  font-size: 11px;
}

.is-arabic .form-heading h2 {
  letter-spacing: 0;
}

.is-arabic .form-heading > p:last-child {
  font-size: 13px;
  line-height: 1.9;
}

.is-arabic .refresh-field label {
  font-size: 13px;
}

.is-arabic .refresh-submit,
.is-arabic .refresh-footer {
  font-size: 11px;
}

@keyframes pwr-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .refresh-main {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .94fr);
    padding-inline: 16px;
  }

  .refresh-story {
    padding-inline: 38px;
  }

  .refresh-form-panel {
    padding-inline: 32px;
  }
}

@media (max-width: 700px) {
  .refresh-header {
    min-height: 66px;
    padding-inline: 19px;
  }

  .refresh-logo {
    width: clamp(144px, 42vw, 180px);
  }

  .refresh-language {
    gap: 7px;
  }

  .refresh-language a {
    padding-block: 8px;
    font-size: 10px;
  }

  .refresh-main {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding: 0 11px 11px;
  }

  .refresh-form-panel {
    order: 1;
    min-height: 0;
    padding: 23px 24px 17px;
    border-radius: 4px 4px 0 0;
  }

  .refresh-story {
    order: 2;
    min-height: 355px;
    padding: 28px 25px 20px;
    border-inline-end: 1px solid rgba(229, 234, 242, .09);
    border-radius: 0 0 4px 4px;
  }

  .form-wrap {
    width: min(100%, 430px);
    margin: 0;
  }

  .form-heading {
    margin-bottom: 21px;
  }

  .form-kicker {
    margin-bottom: 11px;
    font-size: 8px;
  }

  .form-heading h2 {
    font-size: 27px;
  }

  .form-heading > p:last-child {
    margin-top: 6px;
    font-size: 11px;
  }

  .refresh-field {
    margin-bottom: 14px;
  }

  .refresh-field label {
    margin-bottom: 6px;
    font-size: 10px;
  }

  .refresh-field input {
    height: 46px;
    font-size: 11px;
  }

  .refresh-submit {
    min-height: 48px;
    margin-top: 1px;
    font-size: 11px;
  }

  .refresh-footer {
    margin-top: 17px;
    font-size: 7px;
  }

  .story-eyebrow {
    margin-bottom: 22px;
    font-size: 8px;
  }

  .story-platform {
    margin-bottom: 11px;
    font-size: 8px;
  }

  .refresh-story h1 {
    font-size: clamp(35px, 10vw, 48px);
  }

  .story-description {
    max-width: 430px;
    margin-top: 13px;
    font-size: 11px;
    line-height: 1.7;
  }

  .signal-visual {
    height: 100px;
    margin-top: 22px;
  }

  .signal-line {
    height: 78px;
    bottom: 14px;
  }

  .signal-visual::before {
    width: 240px;
    height: 80px;
  }

  .signal-visual::after {
    width: 170px;
    height: 58px;
  }

  .signal-arc-one { top: 30px; }
  .signal-arc-two { top: 45px; }

  .signal-caption {
    bottom: 7px;
    font-size: 7px;
  }

  .story-signoff {
    margin-top: 13px;
    font-size: 7px;
  }

  .is-arabic .story-eyebrow {
    font-size: 10px;
  }

  .is-arabic .story-description {
    font-size: 12px;
  }

  .is-arabic .form-heading > p:last-child {
    font-size: 12px;
  }

  .is-arabic .refresh-field label {
    font-size: 12px;
  }

  .is-arabic .refresh-submit,
  .is-arabic .refresh-footer {
    font-size: 10px;
  }
}

@media (max-width: 390px) {
  .refresh-header {
    padding-inline: 14px;
  }

  .refresh-logo {
    width: 142px;
  }

  .refresh-language {
    gap: 5px;
  }

  .refresh-language a {
    font-size: 9px;
  }

  .refresh-form-panel {
    padding-inline: 19px;
  }

  .refresh-story {
    padding-inline: 20px;
  }

  .footer-divider {
    display: none;
  }

  .refresh-footer {
    flex-direction: column;
    gap: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .refresh-login *,
  .refresh-login *::before,
  .refresh-login *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Page-local reset: the standalone auth layout does not load Bootstrap. */
html, body { margin: 0; }
body { background: #0b0f1a; }
button, input { font: inherit; }
svg [hidden] { display: none; }
.login-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid #798ba5;
  border-radius: 3px;
  background: #fff;
  color: #1f2a3d;
  font-size: 13px;
  line-height: 1.6;
}
.login-notice-error { border-color: #a83838; color: #8c2424; }
.login-notice button {
  margin-inline-start: auto;
  border: 0;
  padding: 0 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 20px;
  line-height: 1.2;
}
.login-notice button:focus-visible { outline: 2px solid #007fb8; outline-offset: 3px; }
.login-field-errors { margin-top: 7px; color: #8c2424; font-size: 12px; line-height: 1.6; }
.login-field-errors p { margin: 0; }
.refresh-field input[aria-invalid="true"] { border-color: #a83838; }
.refresh-submit:disabled { opacity: .7; cursor: wait; transform: none; }
