@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Outfit:wght@300;400;500;600;700;800&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #060b17;
  --bg-soft: #0d1530;
  --panel: rgba(14, 23, 45, 0.75);
  --panel-border: rgba(99, 102, 241, 0.28);
  --panel-highlight: rgba(59, 130, 246, 0.35);
  --primary: #4f46e5;
  --primary-2: #2563eb;
  --accent: #10b981;
  --text-main: #e6eeff;
  --text-soft: #9ab0d3;
  --text-faint: #7d8eaf;
  --white: #ffffff;
  --shadow-lg: 0 30px 70px rgba(3, 7, 18, 0.65);
}

.login-body {
  min-height: 100vh;
  font-family: "Outfit", sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.22), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.14), transparent 35%),
    linear-gradient(145deg, #050913 0%, #0a1228 45%, #0c1733 100%);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

.ambient-layer {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 70, 229, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.35;
  pointer-events: none;
}

.glow-orb-left,
.glow-orb-right {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

.glow-orb-left {
  width: 520px;
  height: 520px;
  left: -180px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, transparent 68%);
}

.glow-orb-right {
  width: 560px;
  height: 560px;
  right: -210px;
  top: -220px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.34) 0%, transparent 68%);
}

.login-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, 95vw);
  min-height: min(760px, 92vh);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  background: rgba(8, 13, 28, 0.64);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}

.hero-panel {
  padding: clamp(32px, 4vw, 56px);
  border-right: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(165deg, rgba(79, 70, 229, 0.16) 0%, rgba(13, 21, 48, 0.42) 45%, rgba(37, 99, 235, 0.09) 100%),
    rgba(8, 14, 28, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(99, 102, 241, 0.38);
  background: rgba(79, 70, 229, 0.16);
  color: #c9d8ff;
  border-radius: 999px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 12px #22d3ee;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.hero-title {
  margin-top: 24px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.06;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.hero-title span {
  background: linear-gradient(90deg, #60a5fa 0%, #22d3ee 55%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  margin-top: 18px;
  max-width: 560px;
  color: var(--text-soft);
  line-height: 1.75;
  font-size: 15.5px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  border: 1px solid rgba(125, 211, 252, 0.2);
  background: linear-gradient(170deg, rgba(30, 41, 59, 0.62), rgba(15, 23, 42, 0.75));
  border-radius: 14px;
  padding: 14px 14px 12px;
}

.metric-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 8px;
  font-family: "DM Mono", monospace;
}

.metric-card strong {
  font-size: 26px;
  color: #f8fbff;
  letter-spacing: -0.015em;
}

.hero-features {
  display: grid;
  gap: 10px;
}

.feature-item {
  border: 1px solid rgba(71, 85, 105, 0.45);
  background: rgba(15, 23, 42, 0.45);
  border-radius: 12px;
  padding: 12px 14px;
  color: #d7e3ff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.feature-item i {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.2);
  color: #7dd3fc;
  font-size: 13px;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: clamp(24px, 3.2vw, 40px);
  background: linear-gradient(170deg, rgba(10, 18, 38, 0.6), rgba(10, 18, 38, 0.84));
}

.login-card {
  width: 100%;
  max-width: 470px;
  border: 1px solid var(--panel-border);
  background: linear-gradient(165deg, rgba(13, 22, 44, 0.78) 0%, rgba(9, 16, 33, 0.86) 100%);
  border-radius: 22px;
  padding: 34px 30px 28px;
  box-shadow:
    0 14px 35px rgba(2, 6, 23, 0.5),
    inset 0 1px 0 rgba(191, 219, 254, 0.05);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 8%, rgba(96, 165, 250, 0.16) 0%, transparent 34%),
    radial-gradient(circle at 12% 95%, rgba(16, 185, 129, 0.14) 0%, transparent 38%);
  pointer-events: none;
}

.card-header-area {
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
}

.system-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #b9c8e6;
  margin-bottom: 14px;
}

.system-tag::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 4px;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
}

.card-company {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f3f8ff;
  text-wrap: balance;
}

.card-subtitle {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.login-form {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
}

.field-wrap {
  display: grid;
  gap: 6px;
}

.field-label {
  font-size: 11px;
  color: #94a9ca;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-family: "DM Mono", monospace;
}

.field-input-wrap {
  position: relative;
}

.field-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #8aa1c8;
  font-size: 14px;
  transition: color 0.2s;
}

.field-input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.58);
  color: #ecf3ff;
  padding: 0 14px 0 42px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.field-input::placeholder {
  color: #6c84ad;
}

.field-input:focus {
  border-color: var(--panel-highlight);
  background: rgba(17, 24, 39, 0.8);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.field-input-wrap:focus-within .field-icon {
  color: #60a5fa;
}

.btn-login {
  margin-top: 4px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-2) 52%, #0ea5e9 100%);
  color: #f8fbff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.045em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s, box-shadow 0.25s, filter 0.2s;
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.45);
  filter: brightness(1.04);
}

.btn-login:active {
  transform: translateY(0);
}

.auth-footer {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.security-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #c3d5f5;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(30, 64, 175, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
  font-family: "DM Mono", monospace;
}

.card-footer-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(100, 116, 139, 0.28);
  color: #8ba2c7;
  font-size: 11.5px;
  text-align: center;
  letter-spacing: 0.045em;
  position: relative;
  z-index: 2;
}

.swal2-popup {
  background: #0f1b35 !important;
  border: 1px solid rgba(99, 102, 241, 0.24) !important;
  color: #ebf2ff !important;
  font-family: "Outfit", sans-serif !important;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.72); opacity: 0.55; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  }

  .hero-title {
    font-size: clamp(30px, 5vw, 44px);
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .login-shell {
    width: 96vw;
    border-radius: 18px;
  }

  .hero-panel {
    padding: 24px 20px;
    gap: 22px;
  }

  .auth-panel {
    padding: 18px;
  }

  .login-card {
    border-radius: 16px;
    padding: 24px 18px 20px;
  }

  .card-company {
    font-size: 24px;
  }

  .card-subtitle {
    font-size: 13px;
  }
}
