:root {
  --auth-v3-bg: #f3f7fc;
  --auth-v3-surface: #ffffff;
  --auth-v3-surface-soft: #f8fafc;

  --auth-v3-primary: #2563eb;
  --auth-v3-primary-hover: #1d4ed8;
  --auth-v3-cyan: #06b6d4;

  --auth-v3-text: #0f172a;
  --auth-v3-text-secondary: #64748b;
  --auth-v3-text-muted: #94a3b8;

  --auth-v3-border: #dce5f0;
  --auth-v3-border-focus: #60a5fa;

  --auth-v3-success: #15803d;
  --auth-v3-success-bg: #f0fdf4;
  --auth-v3-success-border: #bbf7d0;

  --auth-v3-error: #b91c1c;
  --auth-v3-error-bg: #fef2f2;
  --auth-v3-error-border: #fecaca;

  --auth-v3-radius-sm: 8px;
  --auth-v3-radius-md: 12px;
  --auth-v3-radius-lg: 20px;
  --auth-v3-radius-xl: 28px;

  --auth-v3-shadow:
    0 30px 80px rgba(15, 23, 42, 0.12);

  --auth-v3-font:
    Inter,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--auth-v3-bg);
}

body.auth-v3-page {
  min-height: 100vh;
  margin: 0;

  color: var(--auth-v3-text);
  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(37, 99, 235, 0.10),
      transparent 30%
    ),
    radial-gradient(
      circle at 91% 90%,
      rgba(6, 182, 212, 0.08),
      transparent 28%
    ),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);

  font-family: var(--auth-v3-font);
  font-size: 15px;
  line-height: 1.5;
}

button,
input,
a {
  font: inherit;
}

a {
  color: inherit;
}

.auth-v3-topbar {
  min-height: 76px;
  padding: 14px clamp(20px, 4vw, 64px);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(203, 213, 225, 0.72);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.auth-v3-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  color: var(--auth-v3-text);
  text-decoration: none;
}

.auth-v3-brand-mark {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      var(--auth-v3-primary),
      var(--auth-v3-cyan)
    );

  border-radius: 13px;

  box-shadow:
    0 10px 24px rgba(37, 99, 235, 0.24);
}

.auth-v3-brand-mark svg {
  width: 23px;
  height: 23px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-v3-brand-copy {
  min-width: 0;
}

.auth-v3-brand-title {
  display: block;

  font-size: 16px;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.auth-v3-brand-subtitle {
  display: block;
  margin-top: 3px;

  color: var(--auth-v3-text-secondary);

  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-v3-top-action {
  display: flex;
  align-items: center;
  gap: 12px;

  color: var(--auth-v3-text-secondary);
  font-size: 14px;
}

.auth-v3-top-register {
  min-height: 40px;
  padding: 0 17px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--auth-v3-primary);
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 10px;

  font-weight: 700;
  text-decoration: none;

  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.auth-v3-top-register:hover {
  color: #ffffff;
  background: var(--auth-v3-primary);
  border-color: var(--auth-v3-primary);
  transform: translateY(-1px);
}

.auth-v3-main {
  width: 100%;
  min-height: calc(100vh - 76px);
  padding:
    clamp(26px, 5vh, 58px)
    clamp(18px, 4vw, 64px);

  display: grid;
  place-items: center;
}

.auth-v3-shell {
  width: min(1160px, 100%);

  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);

  overflow: hidden;

  background: var(--auth-v3-surface);
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: var(--auth-v3-radius-xl);

  box-shadow: var(--auth-v3-shadow);
}

.auth-v3-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  min-height: 620px;
  padding: clamp(38px, 5vw, 66px);

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  color: #ffffff;

  background:
    radial-gradient(
      circle at 76% 18%,
      rgba(34, 211, 238, 0.25),
      transparent 26%
    ),
    radial-gradient(
      circle at 18% 78%,
      rgba(59, 130, 246, 0.30),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      #07152f 0%,
      #0b2450 48%,
      #0b3d66 100%
    );
}

.auth-v3-visual::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: -2;

  opacity: 0.26;

  background-image:
    linear-gradient(
      rgba(148, 163, 184, 0.15) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(148, 163, 184, 0.15) 1px,
      transparent 1px
    );

  background-size: 34px 34px;

  mask-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.82),
      transparent 92%
    );
}

.auth-v3-visual::after {
  content: "";

  position: absolute;
  width: 380px;
  height: 380px;
  right: -170px;
  bottom: -170px;
  z-index: -1;

  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 50%;

  box-shadow:
    0 0 0 60px rgba(37, 99, 235, 0.04),
    0 0 0 120px rgba(6, 182, 212, 0.025);
}

.auth-v3-product-tag {
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: #bae6fd;
  background: rgba(14, 165, 233, 0.11);
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 999px;

  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.auth-v3-product-dot {
  width: 7px;
  height: 7px;

  background: #22d3ee;
  border-radius: 50%;

  box-shadow:
    0 0 0 4px rgba(34, 211, 238, 0.12),
    0 0 12px rgba(34, 211, 238, 0.65);
}

.auth-v3-visual-copy {
  max-width: 570px;
}

.auth-v3-visual h1 {
  margin: 24px 0 17px;

  font-size: clamp(36px, 4.2vw, 58px);
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.auth-v3-visual-lead {
  max-width: 510px;
  margin: 0;

  color: #cbd5e1;

  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 400;
  line-height: 1.7;
}

.auth-v3-illustration {
  width: min(460px, 92%);
  margin: 30px auto 20px;
}

.auth-v3-illustration svg {
  display: block;
  width: 100%;
  height: auto;
}

.auth-v3-feature-list {
  margin: 0;
  padding: 0;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;

  list-style: none;
}

.auth-v3-feature-item {
  min-width: 0;
  padding: 15px;

  background: rgba(15, 23, 42, 0.30);
  border: 1px solid rgba(148, 163, 184, 0.17);
  border-radius: 14px;

  backdrop-filter: blur(12px);
}

.auth-v3-feature-icon {
  width: 31px;
  height: 31px;

  display: grid;
  place-items: center;

  color: #67e8f9;
  background: rgba(14, 165, 233, 0.11);
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 9px;
}

.auth-v3-feature-icon svg {
  width: 17px;
  height: 17px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-v3-feature-title {
  display: block;
  margin-top: 10px;

  color: #f8fafc;

  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.auth-v3-feature-note {
  display: block;
  margin-top: 4px;

  color: #94a3b8;

  font-size: 11px;
  line-height: 1.45;
}

.auth-v3-form-panel {
  min-width: 0;
  padding:
    clamp(42px, 5vw, 70px)
    clamp(28px, 4vw, 60px);

  display: flex;
  align-items: center;

  background: var(--auth-v3-surface);
}

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

.auth-v3-eyebrow {
  margin: 0 0 10px;

  color: var(--auth-v3-primary);

  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-v3-form-title {
  margin: 0;

  color: var(--auth-v3-text);

  font-size: clamp(30px, 3vw, 40px);
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -0.038em;
}

.auth-v3-form-subtitle {
  margin: 13px 0 28px;

  color: var(--auth-v3-text-secondary);

  font-size: 15px;
  line-height: 1.65;
}

.auth-v3-alert {
  margin-bottom: 18px;
  padding: 12px 14px;

  display: flex;
  align-items: flex-start;
  gap: 10px;

  border: 1px solid;
  border-radius: 11px;

  font-size: 13px;
  line-height: 1.5;
}

.auth-v3-alert-icon {
  flex: 0 0 auto;

  width: 19px;
  height: 19px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  font-size: 11px;
  font-weight: 800;
}

.auth-v3-alert-error {
  color: var(--auth-v3-error);
  background: var(--auth-v3-error-bg);
  border-color: var(--auth-v3-error-border);
}

.auth-v3-alert-error .auth-v3-alert-icon {
  color: #ffffff;
  background: var(--auth-v3-error);
}

.auth-v3-alert-success {
  color: var(--auth-v3-success);
  background: var(--auth-v3-success-bg);
  border-color: var(--auth-v3-success-border);
}

.auth-v3-alert-success .auth-v3-alert-icon {
  color: #ffffff;
  background: var(--auth-v3-success);
}

.auth-v3-form {
  display: grid;
  gap: 18px;
}

.auth-v3-field {
  display: grid;
  gap: 8px;
}

.auth-v3-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.auth-v3-label {
  color: #334155;

  font-size: 13px;
  font-weight: 700;
}

.auth-v3-forgot {
  color: var(--auth-v3-primary);

  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.auth-v3-forgot:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-v3-input-wrap {
  position: relative;
}

.auth-v3-input-icon {
  position: absolute;
  top: 50%;
  left: 14px;

  width: 19px;
  height: 19px;

  color: #94a3b8;

  transform: translateY(-50%);
  pointer-events: none;
}

.auth-v3-input-icon svg {
  display: block;
  width: 100%;
  height: 100%;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-v3-input {
  width: 100%;
  height: 50px;
  padding: 0 46px 0 45px;

  color: var(--auth-v3-text);
  background: #ffffff;
  border: 1px solid var(--auth-v3-border);
  border-radius: 11px;

  font-size: 14px;
  font-weight: 500;

  outline: none;

  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.auth-v3-input::placeholder {
  color: #a8b4c5;
}

.auth-v3-input:hover {
  border-color: #bdcbe0;
}

.auth-v3-input:focus {
  background: #ffffff;
  border-color: var(--auth-v3-border-focus);

  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.10);
}

.auth-v3-password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;

  min-width: 43px;
  height: 34px;
  padding: 0 8px;

  color: #64748b;
  background: transparent;
  border: 0;
  border-radius: 8px;

  font-size: 11px;
  font-weight: 750;

  transform: translateY(-50%);
  cursor: pointer;
}

.auth-v3-password-toggle:hover {
  color: var(--auth-v3-primary);
  background: #eff6ff;
}

.auth-v3-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 2px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      var(--auth-v3-primary),
      #1d4ed8
    );

  border: 0;
  border-radius: 11px;

  font-size: 14px;
  font-weight: 750;

  box-shadow:
    0 13px 28px rgba(37, 99, 235, 0.24);

  cursor: pointer;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.auth-v3-submit:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 32px rgba(37, 99, 235, 0.30);
  filter: brightness(1.035);
}

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

.auth-v3-submit svg {
  width: 17px;
  height: 17px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-v3-divider {
  margin: 25px 0 20px;

  display: flex;
  align-items: center;
  gap: 13px;

  color: var(--auth-v3-text-muted);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-v3-divider::before,
.auth-v3-divider::after {
  content: "";
  flex: 1;

  height: 1px;

  background: #e2e8f0;
}

.auth-v3-register-note {
  margin: 0;

  color: var(--auth-v3-text-secondary);

  font-size: 13px;
  text-align: center;
}

.auth-v3-register-note a {
  color: var(--auth-v3-primary);

  font-weight: 750;
  text-decoration: none;
}

.auth-v3-register-note a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-v3-security-note {
  margin-top: 26px;
  padding-top: 18px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  color: var(--auth-v3-text-muted);
  border-top: 1px solid #eef2f7;

  font-size: 11px;
}

.auth-v3-security-note svg {
  width: 14px;
  height: 14px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-v3-footer-links {
  margin-top: 12px;

  display: flex;
  justify-content: center;
  gap: 16px;

  color: var(--auth-v3-text-muted);

  font-size: 11px;
}

.auth-v3-footer-links a {
  text-decoration: none;
}

.auth-v3-footer-links a:hover {
  color: var(--auth-v3-primary);
}

.auth-v3-top-register:focus-visible,
.auth-v3-forgot:focus-visible,
.auth-v3-password-toggle:focus-visible,
.auth-v3-submit:focus-visible,
.auth-v3-register-note a:focus-visible,
.auth-v3-brand:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .auth-v3-shell {
    grid-template-columns: 1fr;
  }

  .auth-v3-visual {
    min-height: auto;
    padding: 38px;
  }

  .auth-v3-visual h1 {
    max-width: 680px;
    font-size: clamp(32px, 7vw, 50px);
  }

  .auth-v3-illustration {
    width: min(380px, 84%);
    margin: 20px auto;
  }

  .auth-v3-feature-list {
    max-width: 680px;
  }

  .auth-v3-form-panel {
    padding: 48px 34px;
  }
}

@media (max-width: 640px) {
  .auth-v3-topbar {
    min-height: 68px;
    padding: 12px 16px;
  }

  .auth-v3-brand-mark {
    width: 38px;
    height: 38px;
  }

  .auth-v3-brand-title {
    max-width: 190px;
    font-size: 13px;
  }

  .auth-v3-brand-subtitle {
    display: none;
  }

  .auth-v3-top-action > span {
    display: none;
  }

  .auth-v3-top-register {
    min-height: 37px;
    padding: 0 13px;
    font-size: 12px;
  }

  .auth-v3-main {
    min-height: calc(100vh - 68px);
    padding: 14px;
  }

  .auth-v3-shell {
    border-radius: 19px;
  }

  .auth-v3-visual {
    padding: 27px 23px;
  }

  .auth-v3-product-tag {
    font-size: 9px;
  }

  .auth-v3-visual h1 {
    margin-top: 18px;
    font-size: 31px;
  }

  .auth-v3-visual-lead {
    font-size: 14px;
  }

  .auth-v3-illustration {
    width: min(290px, 94%);
    margin: 18px auto 10px;
  }

  .auth-v3-feature-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .auth-v3-feature-item {
    padding: 11px 13px;

    display: grid;
    grid-template-columns: 31px minmax(0, 1fr);
    column-gap: 10px;
  }

  .auth-v3-feature-title {
    align-self: end;
    margin-top: 0;
  }

  .auth-v3-feature-note {
    grid-column: 2;
  }

  .auth-v3-form-panel {
    padding: 37px 22px 30px;
  }

  .auth-v3-form-title {
    font-size: 30px;
  }

  .auth-v3-form-subtitle {
    margin-bottom: 23px;
    font-size: 14px;
  }

  .auth-v3-input {
    height: 48px;
  }
}

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

/* ===== DHA V3 AUTH ALL EXTENSION START ===== */

.auth-v3-shell--register {
  grid-template-columns:
    minmax(0, 0.92fr)
    minmax(480px, 1.08fr);
}

.auth-v3-shell--compact .auth-v3-visual {
  min-height: 570px;
}

.auth-v3-form-wrap--wide {
  width: min(520px, 100%);
}

.auth-v3-form-grid {
  display: grid;
  gap: 17px;
}

.auth-v3-form-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-v3-field--full {
  grid-column: 1 / -1;
}

.auth-v3-info-box {
  margin-bottom: 21px;
  padding: 13px 15px;

  display: flex;
  align-items: flex-start;
  gap: 10px;

  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 11px;

  font-size: 13px;
  line-height: 1.55;
}

.auth-v3-info-box svg {
  flex: 0 0 auto;

  width: 18px;
  height: 18px;
  margin-top: 1px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-v3-secondary-action {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  color: var(--auth-v3-primary);
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 11px;

  font-size: 13px;
  font-weight: 750;
  text-decoration: none;

  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.auth-v3-secondary-action:hover {
  color: #ffffff;
  background: var(--auth-v3-primary);
  border-color: var(--auth-v3-primary);
  transform: translateY(-1px);
}

.auth-v3-password-rules {
  margin: -5px 0 0;
  padding: 0;

  color: var(--auth-v3-text-secondary);

  font-size: 11px;
  line-height: 1.55;
  list-style: none;
}

.auth-v3-password-rules li {
  position: relative;
  padding-left: 15px;
}

.auth-v3-password-rules li::before {
  content: "•";

  position: absolute;
  left: 2px;

  color: var(--auth-v3-primary);
  font-weight: 800;
}

.auth-v3-account-chip {
  margin-bottom: 20px;
  padding: 11px 13px;

  display: flex;
  align-items: center;
  gap: 10px;

  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 11px;

  font-size: 13px;
}

.auth-v3-account-chip strong {
  color: var(--auth-v3-text);
}

.auth-v3-back-row {
  margin-top: 19px;

  display: flex;
  justify-content: center;
  gap: 17px;

  color: var(--auth-v3-text-secondary);

  font-size: 12px;
}

.auth-v3-back-row a {
  color: var(--auth-v3-primary);
  font-weight: 750;
  text-decoration: none;
}

.auth-v3-back-row a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 960px) {
  .auth-v3-shell--register {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .auth-v3-form-grid--two {
    grid-template-columns: 1fr;
  }

  .auth-v3-field--full {
    grid-column: auto;
  }

  .auth-v3-shell--compact .auth-v3-visual {
    min-height: auto;
  }
}

/* ===== DHA V3 AUTH ALL EXTENSION END ===== */
