:root {
  --primary: #2563eb;
  --primary-dark: #2563eb;
  --primary-soft: rgba(37, 99, 235, 0.10);
  --success: #16a34a;
  --danger: #dc2626;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(148, 163, 184, 0.28);
  --card: rgba(255, 255, 255, 0.88);
  --shadow: 0 26px 70px rgba(15, 23, 42, 0.14);
}
html,body,button,input,select,textarea{font-family:Poppins,system-ui,sans-serif!important}

* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.14), transparent 30%),
    linear-gradient(135deg, #f8fafc 0%, #eef4ff 46%, #f8fafc 100%);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.04fr 1fr;
}

.auth-sidebar {
  position: relative;
  overflow: hidden;
  padding: 42px;
  color: #fff;
  background: linear-gradient(150deg, #1e3a8a 0%, #2563eb 58%, #0ea5e9 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-sidebar::before,
.auth-sidebar::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(16px);
  opacity: .42;
}

.auth-sidebar::before {
  width: 320px;
  height: 320px;
  background: #60a5fa;
  top: -110px;
  right: -90px;
}

.auth-sidebar::after {
  width: 230px;
  height: 230px;
  background: #38bdf8;
  bottom: 32px;
  left: -70px;
}

.sidebar-content,
.sidebar-footer {
  position: relative;
  z-index: 1;
}

.brand-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 70px;
}

.brand-logo {
  max-width: 190px;
  max-height: 74px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #dbeafe;
  font-size: 13px;
  white-space: nowrap;
}

.auth-sidebar h1 {
  margin: 0;
  max-width: 610px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.auth-sidebar p {
  margin: 22px 0 0;
  max-width: 530px;
  color: #dbeafe;
  line-height: 1.8;
  font-size: 15px;
}

.sidebar-cards {
  margin-top: 44px;
  max-width: 520px;
  display: grid;
  gap: 14px;
}

.sidebar-cards article {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px);
}

.sidebar-cards i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, .12);
}

.sidebar-cards strong {
  display: block;
  font-size: 15px;
}

.sidebar-cards span {
  display: block;
  color: #dbeafe;
  font-size: 12px;
  margin-top: 3px;
}

.sidebar-footer {
  color: #dbeafe;
  font-size: 12px;
}

.auth-main {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-items: center;
}

.login-card {
  width: min(100%, 540px);
  padding: 34px;
  border-radius: 32px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 80px;
}

.login-kicker {
  color: var(--primary);
  font-size: 12px;
  font-weight: 550;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.login-header h2 {
  margin: 10px 0 8px;
  font-size: 30px;
  letter-spacing: -0.035em;
}

.login-header p {
  margin: 0 auto;
  max-width: 370px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.wizard-indicator {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 30px 0;
}

.wizard-step {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.wizard-step span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e2e8f0;
  color: #64748b;
  transition: .2s ease;
}

.wizard-step.active span,
.wizard-step.done span {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 18px rgba(37, 99, 235, .25);
}

.wizard-step.active small,
.wizard-step.done small {
  color: var(--primary-dark);
}

.wizard-line {
  height: 2px;
  background: #dbe3ef;
  border-radius: 999px;
}

.step-panel {
  display: none;
  animation: fadeStep .24s ease;
}

.step-panel.active {
  display: block;
}

@keyframes fadeStep {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

label {
  display: block;
  margin: 0 0 9px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.label-spaced {
  margin-top: 18px;
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap>i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

input,
select {
  width: 100%;
  height: 54px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .94);
  padding: 0 16px 0 44px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: .2s ease;
}

select {
  appearance: none;
  cursor: pointer;
}

.select-wrap::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

input:focus,
select:focus {
  border-color: rgba(37, 99, 235, .5);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

input.invalid,
select.invalid {
  border-color: rgba(220, 38, 38, .62);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .08);
}

.password-wrap input {
  padding-right: 50px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

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

.serial-info-box {
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--primary-soft);
  border: 1px solid rgba(37, 99, 235, .16);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--primary-dark);
  font-size: 13px;
}

.serial-info-box strong {
  letter-spacing: .04em;
}

.login-message {
  display: none;
  margin-top: 18px;
  padding: 13px 14px;
  border-radius: 15px;
  font-size: 13px;
  line-height: 1.45;
}

.login-message.show {
  display: block;
}

.login-message.error {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.login-message.success {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
}

.login-loader {
  display: none;
  height: 4px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbeafe;
}

.login-loader.show {
  display: block;
}

.login-loader span {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #38bdf8);
  animation: loading 1s infinite ease-in-out;
}

@keyframes loading {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(240%);
  }
}

.login-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

button {
  font-family: inherit;
}

.btn-primary,
.btn-secondary {
  height: 54px;
  border-radius: 16px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 550;
  cursor: pointer;
  transition: .2s ease;
}

.btn-primary {
  flex: 1;
  color: #fff;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 14px 30px rgba(37, 99, 235, .28);
}

.btn-secondary {
  color: #334155;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .82);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none !important;
}

.help-link {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.help-link a {
  color: var(--primary);
  font-weight: 550;
  text-decoration: none;
}

.help-link a:hover {
  color: var(--primary-dark);
}

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

  .auth-sidebar {
    display: none;
  }

  .auth-main {
    padding: 18px;
  }
}

@media (max-width: 560px) {
  .login-card {
    padding: 24px;
    border-radius: 26px;
  }

  .login-header h2 {
    font-size: 25px;
  }

  .wizard-indicator {
    gap: 7px;
  }

  .login-actions {
    flex-direction: column;
  }

  .btn-secondary {
    width: 100%;
  }
}
