*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --h-bg-neutral-default: #ffffff;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "DM Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  color: #1a1a1a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

#page-boot {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-ready #page-boot {
  display: none;
}

.page-boot-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e5e5;
  border-top-color: #6d28d9;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

a {
  color: #6d28d9;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* ── Left: login ── */

.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 32px 32px;
  min-height: 100vh;
  background: #ffffff;
}

.login-inner {
  width: 100%;
  max-width: 400px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 56px;
  flex-shrink: 0;
}

.logo-placeholder {
  width: 148px;
  height: 32px;
  
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border-radius: 2px;
}

.login-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 24px;
}

.login-title {
  margin: 0 0 28px;
  font-size: 22px;
  font-weight: 700;
  color: #111111;
  line-height: 1.25;
}

.login-form {
  width: 100%;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #222222;
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  font-family: inherit;
  font-size: 16px;
  color: #111111;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 48px;
}

.show-password-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
}

.show-password-btn:hover {
  color: #374151;
}

.show-password-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.forgot-link {
  display: inline-block;
  margin: -4px 0 20px;
  font-size: 14px;
  font-weight: 500;
  color: #6d28d9;
}

.login-btn {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  background: #6d28d9;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.login-btn:hover {
  background: #5b21b6;
}

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

.status-box {
  margin: 16px 0 0;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 8px;
}

.status-box[hidden] {
  display: none !important;
}

.status-box.status-error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.status-box.status-success {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.signup-note {
  margin: 28px 0 0;
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.5;
}

.signup-note a {
  color: #1a1a1a;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.signup-note a:hover {
  color: #111111;
}

/* ── Right: marketing ── */

.marketing-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 64px 120px 48px;
  min-height: 100vh;
  overflow: hidden;
  background: var(--h-bg-neutral-default);
}

.marketing-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.marketing-title {
  margin: 0 0 16px;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700;
  font-style: normal;
  line-height: 1.2;
  color: #111111;
  white-space: nowrap;
}

.marketing-title .gradient-text {
  background: linear-gradient(101deg, #ff71ea, #b58bff, #3ab0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.marketing-subtitle {
  margin: 0 0 32px;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.55;
  color: #4b5563;
  white-space: nowrap;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
  color: #374151;
}

.feature-list li:last-child {
  margin-bottom: 0;
}

.check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: #22c55e;
}

.check-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

/* Colorful base + Hostinger-style white radial fade */
.marketing-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 8% 100%, #ff71ea 0%, transparent 55%),
    radial-gradient(ellipse 70% 65% at 92% 100%, #3ab0ff 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 50% 110%, #b58bff 0%, transparent 50%);
}

.marketing-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 345% 80% at 50% 40%,
    var(--h-bg-neutral-default) 0%,
    var(--h-bg-neutral-default) 40%,
    color-mix(in srgb, var(--h-bg-neutral-default) 90%, transparent) 60%,
    color-mix(in srgb, var(--h-bg-neutral-default) 75%, transparent) 70%,
    color-mix(in srgb, var(--h-bg-neutral-default) 50%, transparent) 80%,
    color-mix(in srgb, var(--h-bg-neutral-default) 25%, transparent) 90%,
    color-mix(in srgb, var(--h-bg-neutral-default) 0%, transparent) 100%
  );
}

/* ── Trustpilot ── */

.trustpilot-wrap {
  position: absolute;
  right: 0;
  bottom: 148px;
  left: 0;
  z-index: 1;
  padding: 0 64px 0 48px;
  display: flex;
  justify-content: center;
}

.trustpilot-card {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.trustpilot-label {
  font-size: 15px;
  font-weight: 400;
  font-style: normal;
  color: #191919;
  line-height: 1;
}

.tp-stars {
  width: 110px;
  flex-shrink: 0;
}

.tp-stars-ratio {
  position: relative;
  height: 0;
  width: 100%;
  padding: 0;
  padding-bottom: 18.326693227091635%;
}

.tp-stars-ratio svg {
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
}

/* Trustpilot 4.5 stars (official widget coloring) */
.tp-stars--4.tp-stars--4--half .tp-star .tp-star__canvas,
.tp-stars--4.tp-stars--4--half .tp-star .tp-star__canvas--half {
  fill: #00b67a;
}

.tp-stars--4.tp-stars--4--half .tp-star:nth-of-type(5) .tp-star__canvas {
  fill: #dcdce6;
}

.tp-widget-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tp-widget-rating {
  font-size: 13px;
  font-weight: 400;
  color: #191919;
  line-height: 1;
}

.tp-widget-rating strong {
  font-weight: 700;
}

.tp-widget-logo {
  width: 88px;
  flex-shrink: 0;
}

.tp-logo-ratio {
  position: relative;
  height: 0;
  width: 100%;
  padding: 0;
  padding-bottom: 24.6031746031746%;
}

.tp-logo-ratio svg {
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
}

@media (max-width: 1100px) {
  .marketing-title {
    font-size: clamp(22px, 2.4vw, 30px);
  }
}

@media (max-width: 960px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .marketing-panel {
    min-height: auto;
    padding: 40px 24px 48px;
    justify-content: flex-start;
  }

  .marketing-inner {
    max-width: 100%;
    padding-bottom: 0;
  }

  .marketing-title {
    white-space: normal;
    font-size: 26px;
  }

  .marketing-subtitle {
    white-space: normal;
    font-size: 15px;
  }

  .feature-list li:last-child {
    margin-bottom: 0;
  }

  .trustpilot-wrap {
    position: static;
    margin-top: 36px;
    padding: 0;
    justify-content: center;
  }

  .trustpilot-card {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
    white-space: normal;
  }

  .login-panel {
    min-height: auto;
    padding: 24px 24px 40px;
  }

  .logo-wrap {
    margin: 4px 0 40px;
  }

  .login-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .login-inner {
    max-width: 100%;
  }

  .marketing-title {
    font-size: 22px;
  }

  .marketing-subtitle {
    font-size: 15px;
  }

  .feature-list li {
    font-size: 15px;
  }

  .tp-stars {
    width: 96px;
  }

  .tp-widget-logo {
    width: 76px;
  }

  .tp-widget-rating {
    font-size: 12px;
  }

  .trustpilot-label {
    font-size: 14px;
  }
}
