@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary: #4b36d1;
  --primary-dark: #2d1f9c;
  --accent: #1fb3f5;
  --text: #0f172a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --card: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: radial-gradient(circle at 20% 20%, #eef2ff 0, #f7f8fc 42%, #f6f7fb 100%);
  color: var(--text);
  line-height: 1.6;
}

.login-page {
  min-height: 100vh;
  padding: 36px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.login-page::before,
.login-page::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
}

.login-page::before {
  background: rgba(75, 54, 209, 0.18);
  top: -120px;
  left: -140px;
}

.login-page::after {
  background: rgba(31, 179, 245, 0.18);
  bottom: -140px;
  right: -160px;
}

.login-card {
  width: min(1180px, 96vw);
  background: var(--card);
  border-radius: 28px;
  border: 1px solid #eef0f6;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.08);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
}

.form-side {
  padding: 42px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #edf0f6;
}

.logo {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-copy h1 {
  font-size: 30px;
  line-height: 1.3;
  color: var(--text);
  margin-top: 8px;
}

.form-copy .subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.form-alert {
  margin-top: 6px;
  background: #fff8ed;
  border: 1px solid #ffe6c2;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: #9a3412;
  min-height: 20px;
}

.form-alert:empty {
  display: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
}

.input-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-field label {
  font-size: 13.5px;
  color: var(--text);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.input-field label img {
  height: 16px;
}

.input-field input {
  height: 52px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  color: var(--text);
  transition: all 0.2s ease;
}

.input-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(75, 54, 209, 0.12);
}

.check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}

.check div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check input {
  width: 18px;
  height: 18px;
  appearance: none;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.check input:after {
  content: "";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-family: "Font Awesome 6 pro";
}

.check input:checked {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 10px 24px rgba(75, 54, 209, 0.25);
}

.check input:checked:after {
  content: "\f00c";
}

form button {
  margin-top: 20px;
  width: 100%;
  height: 54px;
  border-radius: 14px;
  border: none;
  outline: none;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary) 0%, #6547f0 50%, var(--accent) 100%);
  box-shadow: 0 12px 30px rgba(75, 54, 209, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(75, 54, 209, 0.32);
}

.btn-arrow {
  font-size: 18px;
}

.visual-side {
  position: relative;
  background: linear-gradient(135deg, #2f1ca3 0%, #4b36d1 45%, #1fb3f5 100%);
  color: #ffffff;
  overflow: hidden;
  padding: 44px 42px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.visual-side::before,
.visual-side::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.visual-side::before {
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.25);
  top: -80px;
  right: -40px;
}

.visual-side::after {
  width: 340px;
  height: 340px;
  background: rgba(31, 179, 245, 0.35);
  bottom: -120px;
  left: -60px;
}

.visual-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
}

.visual-content h3 {
  font-size: 24px;
  line-height: 1.4;
}

.visual-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 13px;
  color: #fff;
  width: fit-content;
}

.pill.soft {
  background: rgba(255, 255, 255, 0.12);
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.stat-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-card small {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.stat-card strong {
  font-size: 22px;
}

.stat-card span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.globe-shell {
  position: relative;
  z-index: 1;
  margin-top: auto;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 16px;
}

#globe {
  width: 100%;
  height: clamp(220px, 32vh, 340px);
  display: flex;
  align-items: center;
  justify-content: center;
}

#globe canvas {
  width: 100% !important;
  height: 100% !important;
}

.footer {
  width: 100%;
  padding: 14px 12px 0;
  margin-top: 18px;
  color: var(--muted);
  text-align: center;
  font-size: 13.5px;
}

.footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .login-card {
    grid-template-columns: 1fr;
  }

  .visual-side {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
}

@media (max-width: 768px) {
  .login-card {
    border-radius: 22px;
  }

  .form-side,
  .visual-side {
    padding: 28px 24px;
  }

  .form-copy h1 {
    font-size: 24px;
  }

  .visual-content h3 {
    font-size: 20px;
  }

  #globe {
    height: 240px;
  }
}
