.dr-login-page {
  --login-navy: #11142f;
  --login-navy-deep: #090d25;
  --login-indigo: #5b3df5;
  --login-purple: #8b46f4;
  --login-lavender: #eef0ff;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(18px, 4vh, 44px) clamp(18px, 4vw, 64px);
  background:
    radial-gradient(circle at 13% 88%, rgba(126, 95, 255, 0.17) 0 12%, transparent 12.2%),
    radial-gradient(circle at 88% 72%, rgba(133, 99, 255, 0.14) 0 10%, transparent 10.2%),
    linear-gradient(135deg, #f5f6ff 0%, #eceeff 52%, #faf9ff 100%);
  color: #11142f;
}

.dr-login-page::before,
.dr-login-page::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 78px;
  height: 78px;
  opacity: 0.52;
  background-image: radial-gradient(circle, #9b8cff 2.5px, transparent 3px);
  background-size: 22px 22px;
}

.dr-login-page::before {
  left: 2.2vw;
  bottom: 18vh;
}

.dr-login-page::after {
  right: 3.2vw;
  top: 18vh;
}

.dr-login-orb {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(0.2px);
  pointer-events: none;
}

.dr-login-orb-one {
  width: clamp(150px, 19vw, 300px);
  aspect-ratio: 1;
  right: -5vw;
  top: -11vw;
  background: linear-gradient(145deg, rgba(108, 92, 231, 0.23), rgba(178, 102, 255, 0.58));
}

.dr-login-orb-two {
  width: clamp(65px, 8vw, 120px);
  aspect-ratio: 1;
  left: 1.8vw;
  top: 22vh;
  background: linear-gradient(145deg, rgba(121, 110, 255, 0.48), rgba(178, 173, 255, 0.62));
}

.dr-login-shell {
  width: min(1240px, 100%);
  height: min(820px, calc(100dvh - clamp(36px, 8vh, 88px)));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(500px, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 30px 80px rgba(41, 36, 108, 0.2), 0 8px 28px rgba(42, 36, 92, 0.1);
  animation: dr-login-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dr-login-story {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(34px, 5.2vh, 66px) clamp(34px, 4.8vw, 76px);
  color: #fff;
  background:
    radial-gradient(circle at 88% 22%, rgba(102, 76, 241, 0.25), transparent 28%),
    linear-gradient(145deg, #10142f 0%, #171b46 54%, #0b102b 100%);
}

.dr-login-story::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -190px;
  top: 14%;
  border: 1px solid rgba(148, 119, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(110, 81, 236, 0.035), 0 0 0 104px rgba(110, 81, 236, 0.025);
}

.dr-login-story-glow {
  position: absolute;
  inset: auto auto -22% -18%;
  width: 520px;
  height: 300px;
  border-radius: 50%;
  background: rgba(107, 62, 255, 0.24);
  filter: blur(80px);
  pointer-events: none;
}

.dr-login-brand,
.dr-login-story-copy,
.dr-login-features,
.dr-login-story-footer {
  position: relative;
  z-index: 2;
}

.dr-login-brand-icon {
  width: clamp(68px, 7.2vh, 82px);
  height: clamp(68px, 7.2vh, 82px);
  display: grid;
  place-items: center;
  margin-bottom: clamp(22px, 3vh, 34px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  background: linear-gradient(145deg, #2d82ff 0%, #7046ff 58%, #9a3df0 100%);
  box-shadow: 0 14px 34px rgba(70, 57, 226, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  font-size: clamp(34px, 4.4vh, 46px);
  line-height: 1;
}

.dr-login-brand-name {
  margin: 0;
  color: #fff;
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-size: clamp(3.25rem, 7.2vh, 5.25rem);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.055em;
}

.dr-login-brand-name span {
  color: #a653ff;
  background: linear-gradient(135deg, #b06cff, #7542ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dr-login-brand-subtitle {
  max-width: 390px;
  margin: clamp(20px, 2.8vh, 30px) 0 0;
  color: #c7cbe3;
  font-size: clamp(1.05rem, 2.3vh, 1.45rem);
  line-height: 1.3;
}

.dr-login-story-copy {
  margin-top: clamp(24px, 4.4vh, 44px);
}

.dr-login-accent-line {
  display: block;
  width: 54px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 99px;
  background: linear-gradient(90deg, #9b52ff, #6d5bff);
}

.dr-login-story-copy p {
  margin: 0;
  color: #c8cce1;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.dr-login-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 22px);
  margin-top: clamp(24px, 4vh, 42px);
}

.dr-login-feature {
  min-width: 0;
}

.dr-login-feature-icon {
  width: clamp(48px, 5.7vh, 60px);
  height: clamp(48px, 5.7vh, 60px);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #7044ff, #4931d6);
  box-shadow: 0 10px 24px rgba(93, 63, 238, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.15em;
}

.dr-login-feature:nth-child(2) .dr-login-feature-icon {
  background: linear-gradient(145deg, #437cff, #2757d6);
}

.dr-login-feature:nth-child(3) .dr-login-feature-icon {
  background: linear-gradient(145deg, #f23b9e, #c22073);
}

.dr-login-feature:nth-child(4) .dr-login-feature-icon {
  background: linear-gradient(145deg, #ff9845, #ee6d25);
}

.dr-login-feature h2 {
  margin: 0;
  color: #f8f9ff;
  font-size: clamp(0.78rem, 1.45vh, 0.94rem);
  font-weight: 650;
  line-height: 1.25;
}

.dr-login-feature p {
  margin: 5px 0 0;
  color: #969dbd;
  font-size: clamp(0.67rem, 1.18vh, 0.75rem);
  line-height: 1.4;
}

.dr-login-story-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: auto 22px 22px 0;
  color: #a653ff;
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-size: clamp(1.05rem, 2.1vh, 1.35rem);
  font-style: italic;
  line-height: 1.25;
  transform: rotate(-4deg);
}

.dr-login-wave-shape {
  position: absolute;
  z-index: 1;
  right: -8%;
  bottom: -120px;
  width: 118%;
  height: 210px;
  border-radius: 48% 55% 0 0 / 32% 42% 0 0;
  background: linear-gradient(155deg, #7039ff 4%, #4a2acb 74%);
  box-shadow: 0 -28px 0 rgba(125, 77, 255, 0.38);
  transform: rotate(-6deg);
}

.dr-login-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  padding: clamp(32px, 5.6vh, 64px) clamp(42px, 5vw, 78px) clamp(24px, 3vh, 34px);
  background:
    radial-gradient(circle at 95% 0%, rgba(139, 70, 244, 0.075), transparent 30%),
    rgba(255, 255, 255, 0.96);
}

.dr-login-panel-content {
  width: min(100%, 510px);
  align-self: center;
  justify-self: center;
}

.dr-login-mobile-brand {
  display: none;
}

.dr-login-welcome h2 {
  margin: 0;
  color: #0c1024;
  font-size: clamp(2.15rem, 5.1vh, 3.45rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.dr-login-hand {
  display: inline-block;
  transform-origin: 72% 78%;
  animation: dr-hand-wave 2.8s ease-in-out 0.7s infinite;
}

.dr-login-welcome p {
  max-width: 470px;
  margin: 13px 0 0;
  color: #66719a;
  font-size: clamp(0.96rem, 2vh, 1.15rem);
  line-height: 1.45;
}

.dr-login-form {
  display: grid;
  gap: clamp(15px, 2.2vh, 22px);
  margin-top: clamp(24px, 4.2vh, 42px);
}

.dr-login-field label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  color: #16182b;
  font-size: 0.9rem;
  font-weight: 700;
}

.dr-login-field label svg {
  width: 19px;
  height: 19px;
  color: #5e3ff5;
  stroke-width: 2.4;
}

.dr-login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.dr-login-input-wrap > .dr-login-input-icon {
  position: absolute;
  z-index: 1;
  left: 17px;
  width: 20px;
  height: 20px;
  color: #8892b4;
  pointer-events: none;
}

.dr-login-input-wrap input {
  width: 100%;
  height: clamp(52px, 6.4vh, 62px);
  padding: 0 52px;
  border: 1.5px solid #d8dcf7;
  border-radius: 14px;
  outline: none;
  color: #181b38;
  background: #fafaff;
  box-shadow: 0 4px 16px rgba(68, 59, 130, 0.025);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dr-login-input-wrap input::placeholder {
  color: #949cbb;
}

.dr-login-input-wrap input:hover {
  border-color: #bfc4ed;
}

.dr-login-input-wrap input:focus {
  border-color: #6546f5;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(101, 70, 245, 0.11), 0 8px 20px rgba(66, 54, 135, 0.08);
}

.dr-login-password-toggle {
  position: absolute;
  right: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #66719a;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.dr-login-password-toggle:hover,
.dr-login-password-toggle:focus-visible {
  color: #5e3ff5;
  background: #efedff;
  outline: none;
}

.dr-login-password-toggle svg {
  width: 20px;
  height: 20px;
}

.dr-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: -2px;
  font-size: 0.87rem;
}

.dr-login-remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #272b46;
  cursor: pointer;
  user-select: none;
}

.dr-login-remember input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dr-login-remember span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 2px solid #697494;
  border-radius: 5px;
  background: #fff;
  transition: all 0.2s ease;
}

.dr-login-remember input:checked + span {
  border-color: #6042f4;
  background: #6042f4;
  box-shadow: 0 4px 12px rgba(96, 66, 244, 0.24);
}

.dr-login-remember input:checked + span::after {
  content: "✓";
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.dr-login-remember input:focus-visible + span {
  outline: 3px solid rgba(96, 66, 244, 0.18);
  outline-offset: 2px;
}

.dr-login-forgot {
  border: 0;
  padding: 4px;
  color: #5b3df5;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.dr-login-forgot:hover,
.dr-login-forgot:focus-visible {
  color: #3d25c9;
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

.dr-login-error {
  margin-top: -5px;
  padding: 10px 13px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #b91c1c;
  background: #fef2f2;
  font-size: 0.82rem;
  line-height: 1.4;
}

.dr-login-submit {
  height: clamp(54px, 6.6vh, 62px);
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(100deg, #583af5 0%, #7944ff 100%);
  box-shadow: 0 13px 28px rgba(89, 59, 236, 0.28);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.dr-login-submit > span,
.dr-login-submit .dr-login-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.dr-login-submit > span > span:last-child {
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}

.dr-login-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 16px 34px rgba(89, 59, 236, 0.34);
}

.dr-login-submit:hover:not(:disabled) > span > span:last-child {
  transform: translateX(4px);
}

.dr-login-submit:focus-visible {
  outline: 4px solid rgba(91, 61, 245, 0.2);
  outline-offset: 3px;
}

.dr-login-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.dr-login-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #fff;
  border-radius: 50%;
  animation: dr-login-spin 0.75s linear infinite;
}

.dr-login-security {
  margin-top: clamp(22px, 3.5vh, 36px);
}

.dr-login-security-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: #68749d;
  font-size: 0.78rem;
  font-weight: 700;
}

.dr-login-security-title span {
  height: 1px;
  background: #dfe2f4;
}

.dr-login-security-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: clamp(14px, 2vh, 19px);
  border: 1px solid #dfe2f4;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbfbff, #f7f7ff);
}

.dr-login-shield {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 90% 16%, 84% 70%, 50% 100%, 16% 70%, 10% 16%);
  color: #fff;
  background: linear-gradient(145deg, #7c5cff, #5035e8);
  font-size: 0.9rem;
  font-weight: 900;
  filter: drop-shadow(0 7px 10px rgba(90, 63, 224, 0.22));
}

.dr-login-security-card strong {
  display: block;
  color: #1a1d35;
  font-size: 0.88rem;
  line-height: 1.35;
}

.dr-login-security-card p {
  margin: 3px 0 0;
  color: #7480a3;
  font-size: 0.75rem;
  line-height: 1.4;
}

.dr-login-footer {
  width: min(100%, 510px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  justify-self: center;
  padding-top: 18px;
  color: #7e89aa;
  font-size: 0.71rem;
}

.dr-login-footer p {
  margin: 0;
}

.dr-login-footer a {
  color: #5b3df5;
  font-weight: 750;
  text-decoration: none;
}

.dr-login-footer a:hover,
.dr-login-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

@keyframes dr-hand-wave {
  0%, 58%, 100% { transform: rotate(0deg); }
  8% { transform: rotate(16deg); }
  16% { transform: rotate(-9deg); }
  24% { transform: rotate(15deg); }
  32% { transform: rotate(-7deg); }
  40% { transform: rotate(10deg); }
  48% { transform: rotate(0deg); }
}

@keyframes dr-login-enter {
  from { opacity: 0; transform: translateY(12px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dr-login-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1100px) {
  .dr-login-shell {
    grid-template-columns: minmax(360px, 0.88fr) minmax(470px, 1.12fr);
  }

  .dr-login-story {
    padding-inline: 38px;
  }

  .dr-login-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dr-login-feature p {
    display: none;
  }

  .dr-login-panel {
    padding-inline: 48px;
  }
}

@media (max-width: 860px) {
  .dr-login-page {
    padding: 0;
  }

  .dr-login-page::before,
  .dr-login-page::after,
  .dr-login-orb-two {
    display: none;
  }

  .dr-login-orb-one {
    right: -80px;
    top: -90px;
  }

  .dr-login-shell {
    width: 100%;
    height: 100dvh;
    display: block;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }

  .dr-login-story {
    display: none;
  }

  .dr-login-panel {
    width: 100%;
    height: 100dvh;
    overflow-y: auto;
    padding: clamp(22px, 5vh, 44px) clamp(22px, 8vw, 64px) 22px;
    background:
      radial-gradient(circle at 100% 0%, rgba(139, 70, 244, 0.12), transparent 30%),
      linear-gradient(145deg, #fff, #fbfbff);
  }

  .dr-login-panel-content {
    width: 100%;
    max-width: 520px;
    min-width: 0;
    margin-inline: auto;
    justify-self: stretch;
  }

  .dr-login-form,
  .dr-login-field,
  .dr-login-input-wrap,
  .dr-login-options,
  .dr-login-security {
    width: 100%;
    min-width: 0;
  }

  .dr-login-mobile-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: clamp(24px, 6vh, 52px);
    color: #191c3a;
  }

  .dr-login-mobile-brand span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, #2d82ff, #7846ff 64%, #9a3df0);
    box-shadow: 0 8px 18px rgba(91, 61, 245, 0.24);
    font-size: 24px;
  }

  .dr-login-mobile-brand strong {
    font-family: var(--font-display, "Playfair Display", Georgia, serif);
    font-size: 1.18rem;
  }

  .dr-login-footer {
    width: 100%;
    max-width: 520px;
    min-width: 0;
    margin-inline: auto;
    justify-self: stretch;
  }
}

@media (max-width: 480px) {
  .dr-login-panel {
    padding-inline: 20px;
  }

  .dr-login-welcome h2 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .dr-login-form {
    margin-top: 25px;
  }

  .dr-login-options {
    font-size: 0.8rem;
  }

  .dr-login-security-card p {
    font-size: 0.7rem;
  }

  .dr-login-footer {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    text-align: center;
  }
}

@media (max-height: 720px) and (min-width: 861px) {
  .dr-login-shell {
    height: calc(100dvh - 24px);
  }

  .dr-login-story,
  .dr-login-panel {
    padding-top: 28px;
    padding-bottom: 20px;
  }

  .dr-login-brand-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    font-size: 32px;
  }

  .dr-login-brand-name {
    font-size: 3.2rem;
  }

  .dr-login-brand-subtitle {
    margin-top: 15px;
    font-size: 1rem;
  }

  .dr-login-story-copy,
  .dr-login-features,
  .dr-login-form {
    margin-top: 20px;
  }

  .dr-login-story-footer {
    display: none;
  }

  .dr-login-welcome h2 {
    font-size: 2.35rem;
  }

  .dr-login-form {
    gap: 13px;
  }

  .dr-login-security {
    margin-top: 18px;
  }

  .dr-login-security-card {
    margin-top: 10px;
    padding: 11px;
  }

  .dr-login-footer {
    padding-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dr-login-shell,
  .dr-login-hand,
  .dr-login-spinner {
    animation: none;
  }

  .dr-login-submit,
  .dr-login-submit * {
    transition: none;
  }
}
