:root {
  --sidebar-bg: #f5f6fb;
  --sidebar-primary: #1f58d5;
  --sidebar-primary-dark: #123a8c;
  --sidebar-text: #142552;
  --sidebar-muted: #6b7a9a;
  --card-shadow: 0 40px 120px rgba(20, 46, 115, 0.28);
  --glass: rgba(255, 255, 255, 0.94);
  --glass-border: rgba(255, 255, 255, 0.26);
}

html {
  height: 100%;
}

.auth-body {
  min-height: 100vh;
  height: auto;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 32px);
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  background: linear-gradient(135deg, #ecf2ff 0%, #f8f9ff 60%, #eef2ff 100%);
  font-family: "Poppins", sans-serif;
  color: var(--sidebar-text);
}

.auth-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.auth-stage {
  width: 100%;
  min-height: 100vh;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 32px);
  padding: clamp(24px, 6vw, 56px);
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
}

.auth-shell {
  width: min(1080px, 100%);
  min-height: clamp(580px, 82vh, 700px);
  background: var(--glass);
  border-radius: 36px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  box-shadow: var(--card-shadow);
  display: flex;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.auth-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 160% at 15% 20%, rgba(31, 88, 213, 0.12), transparent 45%),
    radial-gradient(140% 160% at 85% 80%, rgba(18, 58, 140, 0.14), transparent 48%);
  pointer-events: none;
  z-index: 0;
}

.auth-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.12), transparent 55%);
  pointer-events: none;
}

.auth-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  position: relative;
  z-index: 1;
  justify-content: center;
  gap: 18px;
}

.auth-pane-left {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.92));
  gap: 26px;
}

.auth-left-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.auth-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 6px;
}

.auth-highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(31, 88, 213, 0.08);
  border: 1px solid rgba(31, 88, 213, 0.12);
  box-shadow: 0 16px 26px rgba(20, 46, 115, 0.15);
  backdrop-filter: blur(10px);
}

.auth-highlight-card i {
  font-size: 20px;
  color: rgba(31, 88, 213, 0.8);
}

.auth-highlight-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(18, 38, 90, 0.85);
}

.auth-highlight-text {
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(18, 38, 90, 0.65);
}

.auth-pane-right {
  background: linear-gradient(150deg, rgba(31, 88, 213, 0.1), rgba(237, 242, 255, 0.78));
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  flex-direction: column;
}

.auth-pane-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.28), transparent 58%),
    radial-gradient(circle at 82% 70%, rgba(255, 255, 255, 0.24), transparent 60%);
  pointer-events: none;
}

.auth-header {
  width: 100%;
  display: flex;
  align-items: center;
  border-radius: 32px;
  padding: 26px 32px;
  background: linear-gradient(145deg, rgba(236, 242, 255, 0.9), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(48, 92, 210, 0.12);
  box-shadow: 0 28px 48px rgba(20, 46, 115, 0.18);
}

.auth-heading {
  display: flex;
  align-items: center;
  gap: 20px;
}

.auth-heading-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(132, 165, 255, 0.28), rgba(98, 149, 255, 0.18));
  color: #1a3088;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.auth-heading-text h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(16, 38, 110, 0.96);
  text-wrap: balance;
}

.auth-heading-text p {
  margin: 6px 0 0;
  font-size: 14px;
  color: rgba(30, 60, 140, 0.62);
  text-wrap: pretty;
}

@media (max-width: 768px) {
  .auth-header {
    padding: 22px 24px;
    border-radius: 22px;
  }

  .auth-heading {
    align-items: flex-start;
    gap: 16px;
  }

  .auth-heading-icon {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-field label {
  font-weight: 600;
  font-size: 14px;
  color: var(--sidebar-text);
}

.auth-input {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  border: 1px solid rgba(20, 46, 115, 0.14);
  border-radius: 18px;
  padding: 16px 20px;
  background: transparent;
  box-shadow: none;
  transition: border 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: text;
  overflow: hidden;
}

.auth-input::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(223, 234, 255, 0.24));
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 0;
}

.auth-input:focus-within {
  border-color: rgba(31, 88, 213, 0.4);
  box-shadow: 0 18px 36px rgba(31, 88, 213, 0.16);
}

.auth-input:focus-within::before {
  opacity: 1;
}

.auth-input i {
  color: var(--sidebar-primary);
  font-size: 18px;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.auth-input input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: var(--sidebar-text);
  position: relative;
  z-index: 1;
}

.auth-input input::placeholder {
  color: rgba(20, 46, 115, 0.45);
}

.auth-location-inline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 12px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(31, 88, 213, 0.08), rgba(31, 88, 213, 0.02));
  border: 1px solid rgba(31, 88, 213, 0.16);
  position: relative;
  overflow: hidden;
}

.auth-location-inline::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(31, 88, 213, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.auth-location-inline:hover::after {
  opacity: 0.6;
}

.auth-location-info {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1 1 auto;
  font-size: 13px;
  color: var(--sidebar-primary);
  min-width: 0;
  position: relative;
  z-index: 1;
}

.auth-location-info i {
  margin-top: 2px;
}

.auth-location-link {
  color: inherit;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.auth-refresh {
  background: linear-gradient(135deg, var(--sidebar-primary), #2845d7);
  border: none;
  color: #fff;
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.auth-refresh:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(31, 88, 213, 0.25);
}

.auth-body .auth-alert {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  margin-top: 18px;
  border-radius: 18px;
  border: 1px solid rgba(220, 70, 80, 0.24);
  background: linear-gradient(135deg, rgba(255, 240, 242, 0.95), rgba(255, 255, 255, 0.92));
  color: #8c1f2c;
  box-shadow: 0 16px 32px rgba(220, 70, 80, 0.16);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.auth-body .auth-alert.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.auth-body .auth-alert-icon {
  font-size: 22px;
}

.auth-body .auth-alert-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.003em;
}

.auth-body .auth-alert-close {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.5);
  color: inherit;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.auth-body .auth-alert-close:hover {
  background: rgba(255, 255, 255, 0.65);
  transform: scale(1.05);
}

.auth-body .auth-alert-info {
  border-color: rgba(39, 88, 212, 0.28);
  background: linear-gradient(135deg, rgba(235, 243, 255, 0.95), rgba(255, 255, 255, 0.92));
  color: #1f3f8f;
  box-shadow: 0 16px 32px rgba(35, 77, 202, 0.18);
}

.auth-body .auth-alert-warn {
  border-color: rgba(234, 160, 37, 0.32);
  background: linear-gradient(135deg, rgba(255, 247, 228, 0.95), rgba(255, 255, 255, 0.92));
  color: #8a5304;
  box-shadow: 0 16px 32px rgba(177, 120, 24, 0.16);
}

.auth-body .auth-alert-error {
  border-color: rgba(220, 70, 80, 0.3);
  background: linear-gradient(135deg, rgba(255, 240, 242, 0.95), rgba(255, 255, 255, 0.92));
  color: #8c1f2c;
  box-shadow: 0 16px 32px rgba(173, 40, 48, 0.2);
}

.auth-body .auth-alert-ok {
  border-color: rgba(41, 167, 117, 0.28);
  background: linear-gradient(135deg, rgba(233, 255, 246, 0.96), rgba(255, 255, 255, 0.92));
  color: #0f6645;
  box-shadow: 0 16px 32px rgba(24, 125, 86, 0.18);
}

.auth-body .auth-alert-ok .auth-alert-close,
.auth-body .auth-alert-warn .auth-alert-close,
.auth-body .auth-alert-error .auth-alert-close,
.auth-body .auth-alert-info .auth-alert-close {
  color: inherit;
}

.auth-spin {
  display: inline-block;
  animation: authSpin 0.8s linear infinite;
}

@keyframes authSpin {
  to {
    transform: rotate(360deg);
  }
}

.auth-input.auth-input-error {
  border-radius: 18px;
  border-color: rgba(255, 90, 120, 0.6);
  background: transparent;
  box-shadow: 0 0 0 1px rgba(255, 105, 135, 0.2), 0 16px 30px rgba(220, 49, 79, 0.18);
}

.auth-input.auth-input-error::before {
  background: none;
  opacity: 0;
}

.auth-input input.input-validation-error {
  color: #c81e4a;
}

.auth-input input.input-validation-error::placeholder {
  color: rgba(200, 30, 74, 0.32);
}

.auth-input.auth-input-error i {
  color: #c81e4a;
}

.auth-input input:-webkit-autofill,
.auth-input input:-webkit-autofill:hover,
.auth-input input:-webkit-autofill:focus,
.auth-input input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px transparent inset;
  box-shadow: 0 0 0 1000px transparent inset;
  background: transparent !important;
  transition: background-color 5000s ease-in-out 0s;
}

.auth-input input:autofill,
.auth-input input:autofill:hover,
.auth-input input:autofill:focus {
  box-shadow: 0 0 0 1000px transparent inset;
  background: transparent !important;
}

.auth-field.auth-field-error label {
  color: #c81e4a;
}

.auth-location-inline.auth-location-error {
  border-radius: 18px;
  border: 1px solid rgba(220, 70, 80, 0.45);
  box-shadow: 0 12px 24px rgba(220, 49, 79, 0.18);
  background: linear-gradient(135deg, rgba(255, 240, 243, 0.88), rgba(255, 255, 255, 0.92));
}

.auth-submit {
  border: none;
  border-radius: 16px;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--sidebar-primary), #2845d7);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 24px 36px rgba(31, 88, 213, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 32px 48px rgba(31, 88, 213, 0.3);
}

.auth-footer-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--sidebar-muted);
  text-align: center;
}

.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  flex: 1;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 28px 28px auto 60%;
  height: 120px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.38), transparent);
  pointer-events: none;
  mix-blend-mode: screen;
}

.auth-visual-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-visual-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: rgba(18, 58, 140, 0.9);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}

.auth-visual-header h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  color: rgba(18, 38, 90, 0.94);
}

.auth-visual-header p {
  margin: 0;
  font-size: 13px;
  color: rgba(18, 38, 90, 0.68);
  line-height: 1.55;
}

.auth-map-wrapper {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 320px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 55px rgba(20, 46, 115, 0.2);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.4);
}

.auth-map {
  width: 100%;
  height: 100%;
}

.auth-map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.1), transparent 70%);
}

.auth-visual-hints {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  color: rgba(18, 38, 90, 0.72);
  font-size: 13px;
}

.auth-visual-hints li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-visual-hints i {
  color: var(--sidebar-primary);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(18, 58, 140, 0.12);
}

.auth-right-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.auth-right-card {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(31, 88, 213, 0.12);
  box-shadow: 0 22px 40px rgba(31, 88, 213, 0.18);
  backdrop-filter: blur(14px);
}

.auth-right-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #1f3f8f;
  background: rgba(31, 88, 213, 0.16);
}

.auth-right-card-label {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(25, 55, 128, 0.58);
}

.auth-right-card-value {
  margin: 4px 0;
  font-size: 18px;
  font-weight: 600;
  color: rgba(16, 38, 110, 0.96);
}

.auth-right-card-desc {
  margin: 0;
  font-size: 12px;
  color: rgba(25, 55, 128, 0.64);
}

@media (max-width: 1100px) {
  .auth-shell {
    width: min(700px, 100%);
    flex-direction: column;
    align-items: stretch;
  }

  .auth-pane {
    padding: clamp(24px, 8vw, 38px);
    align-items: center;
    text-align: center;
  }

  .auth-pane-right {
    border-left: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }

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

  .auth-right-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-map-wrapper {
    min-height: 260px;
  }
}

@media (max-width: 820px) {
  .auth-stage {
    min-height: 100vh;
    padding: clamp(18px, 8vw, 32px);
    justify-content: center;
  }

  .auth-shell {
    border-radius: 28px;
    min-height: auto;
    width: min(640px, 100%);
  }

  .auth-pane {
    padding: clamp(20px, 8vw, 30px);
    align-items: center;
    text-align: center;
  }

  .auth-left-body {
    gap: 18px;
  }

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

  .auth-pane-right {
    display: none;
  }
}

@media (max-width: 560px) {
  .auth-shell {
    border-radius: 22px;
    min-height: auto;
    box-shadow: 0 26px 50px rgba(20, 46, 115, 0.18);
  }

  .auth-pane {
    padding: clamp(16px, 9vw, 24px);
    gap: 16px;
  }

  .auth-header {
    padding: 20px 22px;
    border-radius: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .auth-heading-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .auth-form-card {
    padding: 22px;
  }

  .auth-highlight-grid {
    grid-template-columns: 1fr;
  }

  .auth-right-cards {
    grid-template-columns: 1fr;
  }

  .auth-map-wrapper {
    min-height: 220px;
  }
}
