:root {
  --bg-1: #081124;
  --bg-2: #0e1f3d;
  --accent: #58b6ff;
  --accent-soft: rgba(88, 182, 255, 0.28);
  --text: #e8f0ff;
  --muted: #9db0d4;
  --border: rgba(255, 255, 255, 0.2);
  --glass: rgba(12, 23, 47, 0.58);
  --danger: #ff7f7f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: 'Sora', sans-serif;
  color: var(--text);
  background:
    linear-gradient(120deg, rgba(8, 17, 36, 0.94) 12%, rgba(7, 29, 59, 0.66) 52%, rgba(8, 17, 36, 0.95) 90%),
    url('../images/bg.png') center/cover no-repeat fixed;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: -15%;
  background:
    radial-gradient(circle at 20% 25%, rgba(88, 182, 255, 0.22), transparent 36%),
    radial-gradient(circle at 80% 70%, rgba(72, 144, 255, 0.28), transparent 45%);
  filter: blur(12px);
  animation: pulseGlow 8s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes pulseGlow {
  from {
    transform: scale(1);
    opacity: 0.75;
  }

  to {
    transform: scale(1.08);
    opacity: 1;
  }
}

.layout {
  position: relative;
  z-index: 1;
  width: min(1100px, 96vw);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
  padding: 18px;
}

.brand-panel {
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 42px);
  background: linear-gradient(150deg, rgba(8, 24, 49, 0.42), rgba(7, 23, 44, 0.28));
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 8px 14px;
  width: fit-content;
  color: #d3e4ff;
  background: rgba(10, 35, 67, 0.55);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

h1 {
  margin-top: 22px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 7vw, 5.2rem);
  letter-spacing: 0.06em;
  line-height: 0.95;
  text-transform: uppercase;
  text-wrap: balance;
}

.subtitle {
  margin-top: 14px;
  max-width: 44ch;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.98rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.chip {
  font-size: 0.84rem;
  color: #dce9ff;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 27, 49, 0.6);
}

.login-card {
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(20px, 3vw, 34px);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 24px 50px rgba(3, 9, 21, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.login-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 12px;
}

.login-title {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.vendor {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: right;
  font-weight: 600;
  text-transform: none;
}

.inline-end {
  justify-content: flex-end;
}

.switcher {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(11, 24, 47, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.switch-btn {
  flex: 1;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #b6c8e7;
  padding: 10px 8px;
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.switch-btn.active {
  background: rgba(88, 182, 255, 0.16);
  color: #ecf4ff;
  border-color: rgba(88, 182, 255, 0.5);
  box-shadow: inset 0 0 0 1px rgba(88, 182, 255, 0.18);
}

.field {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 7px;
  color: #c9d8f5;
  font-size: 0.83rem;
  letter-spacing: 0.02em;
}

input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 22, 41, 0.65);
  color: #eff5ff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  border-color: rgba(88, 182, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(88, 182, 255, 0.24);
}

.inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 18px;
  font-size: 0.82rem;
  color: var(--muted);
}

.inline a {
  color: #8de7ff;
  text-decoration: none;
}

.inline a:hover {
  text-decoration: underline;
}

.btn {
  width: 100%;
  border: none;
  border-radius: 13px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.btn-primary {
  background: linear-gradient(90deg, #3d87ff, #59c0ff);
  color: #061738;
  margin-bottom: 10px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e6f0ff;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.step {
  display: none;
  animation: fadeIn 0.22s ease;
}

.step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.warn {
  color: var(--danger);
  font-size: 0.78rem;
  margin-top: 8px;
  display: none;
}

.system-mode {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(88, 182, 255, 0.32);
  background: rgba(10, 31, 60, 0.58);
}

.tag-text {
  display: block;
  color: #8eb0df;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.system-mode strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
}

.system-mode small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.alert {
  margin-bottom: 16px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
  line-height: 1.5;
}

.alert-success {
  background: rgba(48, 132, 93, 0.16);
  border-color: rgba(100, 220, 160, 0.32);
  color: #d9ffea;
}

.alert-error {
  background: rgba(173, 52, 52, 0.16);
  border-color: rgba(255, 127, 127, 0.28);
  color: #ffe2e2;
}

.auth-info-list {
  list-style: none;
  margin-top: 16px;
  display: grid;
  gap: 8px;
  color: #dce9ff;
  font-size: 0.82rem;
}

.auth-info-list li {
  padding-left: 16px;
  position: relative;
}

.auth-info-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.dev-note {
  margin-bottom: 12px;
  color: #9ad8ff;
  font-size: 0.8rem;
}

.dev-note a {
  color: #dff5ff;
}

.layout-single {
  grid-template-columns: 1fr 0.85fr;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.company-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.company-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 28, 52, 0.55);
  cursor: pointer;
}

.company-option:hover {
  border-color: rgba(88, 182, 255, 0.48);
}

.company-option input {
  width: auto;
  padding: 0;
  margin-top: 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
  accent-color: #59c0ff;
}

.company-option span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.company-option small {
  color: var(--muted);
}

input[readonly] {
  opacity: 0.86;
}

.pin-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.pin-row input {
  text-align: center;
  letter-spacing: 0.32em;
  font-size: 1rem;
  font-weight: 600;
}

@media (max-width: 960px) {
  .layout,
  .layout-single {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: 240px;
  }
}

@media (max-width: 520px) {
  .switch-btn {
    font-size: 0.82rem;
  }

  .login-card,
  .brand-panel {
    border-radius: 20px;
  }

  .subtitle {
    line-height: 1.55;
  }
}
