:root {
  --primary: #0055ff;
  --primary-dark: #0043ff;
  --primary-soft: #d1fae5;
  --bg: #eef2f4;
  --text: #0f172a;
  --muted: #7b8494;
  --line: #e5e7eb;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(
      circle at 90% 90%,
      rgba(255, 255, 255, 0.95),
      transparent 32%
    ),
    linear-gradient(135deg, #f8fafc 0%, #dfe7ea 100%);
  color: var(--text);
}
p {
  font-size: 12px;
}

.login-shell {
  width: 100%;
  min-height: 100vh;
  padding: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.login-panel {
  width: 100%;
  max-width: 1180px;
  min-height: 760px;
  margin: auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  padding: 14px;
}

.login-inner {
  width: 100%;
  min-height: 760px;
  height: auto;
  background: #fff;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.login-left {
  position: relative;
  min-width: 0;
  min-height: 760px;
  height: auto;
  padding: 44px 74px 34px;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
}

.brand img {
  display: block;
  max-width: 100%;
  height: auto;
}

.login-form-wrap {
  width: 100%;
  max-width: 620px;
  margin: 28px auto 30px;
}

.login-form-wrap h1,
.login-form-wrap h2 {
  margin: 0 0 10px;
  text-align: center;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -1px;
  color: #0f172a;
}

.login-subtitle {
  margin: 0 0 26px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.alert {
  padding: 11px 13px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.register-grid .full {
  grid-column: 1 / -1;
}

.form-group {
  min-width: 0;
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 400;
  color: #111827;
}

.input-wrap {
  position: relative;
}

.form-group input {
  width: 100%;
  height: 42px;
  border: 1px solid #718fbc;
  border-radius: 7px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 13px;
  color: #111827;
  background: #fff;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group input[type="password"] {
  font-size: 10px;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 85, 255, 0.12);
}

.form-group input::placeholder {
  color: #9aa5b5;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 14px;
}

.terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 22px;
  font-size: 13px;
  line-height: 1.45;
  color: #475569;
  cursor: pointer;
}

.terms input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}

.terms span {
  min-width: 0;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.login-btn {
  display: block;
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 42px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(0, 85, 255, 0.24);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(0, 85, 255, 0.3);
}

.login-footer {
  position: static;
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  justify-content: center;
  font-size: 13px;
  color: #8b95a7;
}

.login-footer a {
  color: #8b95a7;
  text-decoration: none;
}

.login-right {
  position: relative;
  min-width: 0;
  min-height: 724px;
  margin: 18px 18px 18px 0;
  border-radius: 18px;
  overflow: hidden;
  padding: 74px 64px;
  color: #fff;
  background: #fff;
}

.login-right-content {
  position: relative;
  z-index: 3;
  max-width: 470px;
}

.login-right h2 {
  margin: 0 0 20px;
  font-size: 34px;
  line-height: 1.22;
  letter-spacing: -0.8px;
}

.login-right p {
  margin: 0;
  max-width: 440px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.7;
}

.preview-card {
  position: absolute;
  left: 64px;
  right: 84px;
  bottom: 0;
  z-index: 2;
  height: 340px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-radius: 14px 14px 0 0;
  padding: 16px 18px;
  color: #172033;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
}

.preview-header {
  display: flex;
  gap: 9px;
  margin-bottom: 14px;
}

.preview-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mini-card {
  min-height: 112px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 15px;
}

.mini-card small {
  display: block;
  margin-bottom: 8px;
  color: #8ea0b8;
  font-size: 12px;
  font-weight: 800;
}

.mini-card strong {
  display: block;
  font-size: 18px;
  color: #111827;
}

.chart-line {
  height: 38px;
  margin-top: 12px;
  border-radius: 9px;
  background:
    linear-gradient(
      135deg,
      transparent 44%,
      rgba(0, 85, 255, 0.3) 45%,
      rgba(0, 85, 255, 0.3) 52%,
      transparent 53%
    ),
    linear-gradient(
      45deg,
      transparent 44%,
      rgba(0, 85, 255, 0.25) 45%,
      rgba(0, 85, 255, 0.25) 52%,
      transparent 53%
    ),
    #f8fafc;
}

.table-preview {
  grid-column: span 2;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 10px;
}

.table-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.6fr;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid #eef2f7;
  font-size: 11px;
  color: #475569;
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row strong {
  color: #53657d;
  font-size: 11px;
}

.floating-widget {
  position: absolute;
  z-index: 4;
  right: 52px;
  top: 300px;
  width: 190px;
  height: 205px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 18px;
  color: #111827;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.18);
}

.floating-widget small {
  display: block;
  margin-bottom: 12px;
  color: #8ea0b8;
  font-size: 13px;
  font-weight: 800;
}

.circle-chart {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: conic-gradient(
    var(--primary) 0 72%,
    var(--primary-soft) 72% 100%
  );
}

.circle-chart::after {
  content: "";
  position: absolute;
  inset: 18px;
  background: #fff;
  border-radius: 50%;
}

.floating-widget strong {
  display: block;
  text-align: center;
  font-size: 20px;
}

.floating-widget span {
  display: block;
  text-align: center;
  color: #475569;
  font-size: 11px;
}

@media (max-width: 1000px) {
  .login-shell {
    min-height: 100vh;
    padding: 20px;
  }

  .login-panel,
  .login-inner,
  .login-left {
    min-height: auto;
  }

  .login-inner {
    display: block;
    overflow: visible;
  }

  .login-right {
    display: none;
  }

  .login-left {
    width: 100%;
    padding: 42px 36px 30px;
  }

  .login-form-wrap {
    margin-top: 28px;
  }
}

@media (max-width: 800px) {
  .register-grid {
    grid-template-columns: 1fr;
  }

  .register-grid .full {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .login-shell {
    padding: 10px;
  }

  .login-panel {
    min-height: auto;
    padding: 8px;
    border-radius: 18px;
  }

  .login-inner {
    border-radius: 14px;
  }

  .login-left {
    padding: 30px 22px 24px;
  }

  .login-form-wrap {
    max-width: 100%;
    margin-top: 24px;
    margin-bottom: 22px;
  }

  .login-form-wrap h1,
  .login-form-wrap h2 {
    font-size: 27px;
  }

  .login-footer {
    padding-top: 16px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
