:root {
  --bg: #f3f3f6;
  --card-bg: #ffffff;
  --blue: #135bec;
  --blue-strong: #1c64f2;
  --text: #111827;
  --muted: #6b7280;
  --line: #d1d5db;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(120px 90px at 50% 50%, rgba(209, 213, 219, 1) 1.2%, transparent 1.3%),
    linear-gradient(180deg, #f6f6f8 0%, #f3f3f6 100%);
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.security-icon,
.sign-in-btn span:last-child {
  font-family: 'Material Symbols Outlined', sans-serif;
  font-weight: 200;
  font-style: normal;
  line-height: 1;
}

.main-section {
  padding: 28px 48px 20px;
  display: flex;
  justify-content: center;
  flex: 1;
}

.login-card {
  width: min(1020px, 100%);
  min-height: 620px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 25px 50px -12px rgba(19, 91, 236, 0.05);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.left-panel {
  position: relative;
  background: #0f172a;
  color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.left-panel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.left-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.45));
  z-index: 1;
}

.decor-circle {
  position: absolute;
  border-radius: 9999px;
  filter: blur(32px);
  pointer-events: none;
  z-index: 2;
}

.decor-circle-bottom {
  width: 320px;
  height: 320px;
  right: -80px;
  bottom: -80px;
  background: rgba(255, 255, 255, 0.05);
}

.decor-circle-top {
  width: 240px;
  height: 240px;
  left: -80px;
  top: -80px;
  background: rgba(0, 0, 0, 0.1);
}

.hero-content {
  position: relative;
  max-width: 454px;
  z-index: 3;
}

.hero-icon {
  width: 160px;
  height: auto;
  display: block;
  object-fit: contain;
  margin-bottom: 16px;
}

.hero-content h1 {
  margin: 32px 0 12px;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.25;
  font-weight: 800;
  white-space: pre-line;
  min-height: 5em;
  max-width: 390px;
}

.hero-content p {
  margin: 0;
  font-size: 18px;
  line-height: 1.625;
  opacity: 0.8;
  max-width: 417px;
}

.security-chip {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  width: 100%;
  max-width: 454px;
  margin-top: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 17px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(2px);
  z-index: 3;
}

.security-icon {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.2);
}

.security-title {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.security-subtitle {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  opacity: 0.7;
}

.right-panel {
  display: flex;
  align-items: center;
  padding: 44px;
}

.right-panel-inner {
  width: min(390px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 30px;
}

.form-header {
  display: grid;
  gap: 8px;
}

.form-header h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 800;
}

.form-header p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.customer-login-content {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
}

.login-form {
  display: grid;
  gap: 24px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.customer-slug-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.validate-slug-btn {
  min-width: 110px;
  height: 54px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font: 700 14px/20px 'Manrope', sans-serif;
  cursor: pointer;
  box-shadow:
    0 10px 15px -3px rgba(19, 91, 236, 0.2),
    0 4px 6px -4px rgba(19, 91, 236, 0.2);
}

.validate-slug-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.customer-slug-status {
  margin: 0;
  min-height: 20px;
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}

.customer-slug-status.is-success {
  color: #047857;
}

.customer-slug-status.is-error {
  color: #b91c1c;
}

.field-group label,
.forgot-password-link,
.checkbox-row span {
  color: #374151;
  font-size: 14px;
  line-height: 20px;
}

.field-group label {
  font-weight: 600;
}

.forgot-password-link {
  width: fit-content;
  color: var(--blue);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  text-decoration: none;
}

.login-form input[type='text'],
.login-form input[type='email'],
.login-form input[type='password'] {
  height: 54px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 17px;
  font: 400 16px/22px 'Manrope', sans-serif;
  color: var(--text);
  outline: 0;
}

.login-form input::placeholder {
  color: #9ca3af;
}

.login-form input:focus {
  border-color: var(--blue-strong);
  box-shadow: 0 0 0 3px rgba(19, 91, 236, 0.12);
}

.login-form input:disabled {
  background: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  user-select: none;
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--blue);
}

.checkbox-row span {
  color: #4b5563;
  font-weight: 400;
}

.sign-in-btn {
  height: 60px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font: 700 16px/24px 'Manrope', sans-serif;
  cursor: pointer;
  box-shadow:
    0 10px 15px -3px rgba(19, 91, 236, 0.2),
    0 4px 6px -4px rgba(19, 91, 236, 0.2);
  transition: transform 120ms ease, filter 120ms ease;
}

.sign-in-btn:hover {
  filter: brightness(1.02);
}

.sign-in-btn:active {
  transform: translateY(1px);
}

.sign-in-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.sign-in-btn span:last-child {
  font-size: 18px;
}

.signup-row {
  margin: 8px 0 0;
  padding-top: 33px;
  border-top: 1px solid #f3f4f6;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  line-height: 20px;
}

.signup-row a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.legal-row {
  margin: 12px 0 0;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-row a {
  color: #9ca3af;
  font-size: 12px;
  line-height: 16px;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .main-section {
    padding: 24px 24px 24px;
  }

  .login-card {
    grid-template-columns: 1fr;
  }

  .right-panel {
    order: 1;
  }

  .left-panel {
    order: 2;
  }

  .left-panel {
    min-height: 420px;
  }
}

@media (max-width: 700px) {
  .main-section {
    padding: 16px 12px 24px;
  }

  .right-panel,
  .left-panel {
    padding: 24px;
  }

  .right-panel {
    order: 1;
  }

  .left-panel {
    order: 2;
  }

  .form-header h2 {
    font-size: 34px;
  }

  .legal-row { gap: 12px; }

}
