/* =====================================================
   STORLY REGISTER
   Balanced Premium SaaS Registration UI
===================================================== */

* {
  box-sizing: border-box;
}

:root {
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #94a3b8;
  --blue: #2563eb;
  --purple: #7c3aed;
  --cyan: #06b6d4;
  --border: #e2e8f0;
  --shadow: 0 28px 80px rgba(15, 23, 42, 0.13);
}

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

body {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(37, 99, 235, 0.11), transparent 30%),
    radial-gradient(circle at 90% 16%, rgba(124, 58, 237, 0.10), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eef5fb 55%, #e7eff7 100%);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.32), transparent 76%);
}

/* PAGE */

.register-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 38px;
}

.register-shell {
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 26px;
  align-items: stretch;
}

/* LEFT PANEL */

.register-brand {
  position: relative;
  min-height: 650px;
  padding: 34px;
  border-radius: 36px;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;

  color: #ffffff;
  background:
    radial-gradient(circle at 20% 12%, rgba(96, 165, 250, 0.35), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(124, 58, 237, 0.34), transparent 30%),
    radial-gradient(circle at 78% 95%, rgba(6, 182, 212, 0.24), transparent 34%),
    linear-gradient(145deg, #07111f 0%, #101827 55%, #172554 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.register-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.46), transparent 82%);
}

.register-brand > * {
  position: relative;
  z-index: 2;
}

/* BRAND */

.brand-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--cyan));
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.34);
}

.brand-logo span {
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.brand-nav strong {
  display: block;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.brand-nav p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-weight: 750;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.register-brand .eyebrow {
  color: #93c5fd;
}

.register-preview h1 {
  max-width: 430px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 3.8vw, 48px);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.075em;
}

.register-preview p:last-child {
  max-width: 420px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 650;
}

/* BENEFITS */

.register-benefits {
  display: grid;
  gap: 11px;
}

.register-benefits div {
  padding: 16px;
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.095);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(16px);
}

.register-benefits span {
  display: inline-flex;
  margin-bottom: 9px;
  color: #93c5fd;
  font-size: 11px;
  font-weight: 950;
}

.register-benefits strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
}

.register-benefits p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 650;
}

/* RIGHT CARD */

.register-card {
  position: relative;
  min-height: 650px;
  padding: 42px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 92% 0%, rgba(37, 99, 235, 0.07), transparent 32%),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.register-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--cyan));
}

.register-card-header {
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e5edf5;
}

.register-card-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 38px;
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.register-card-header p:last-child {
  max-width: 500px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* MESSAGES */

.register-messages {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.register-message {
  padding: 13px 15px;
  border-radius: 16px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #bbf7d0;
  font-size: 13px;
  font-weight: 850;
}

.register-message.error,
.register-message.danger {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

/* FORM */

.register-form {
  display: grid;
  gap: 16px;
}

.register-grid {
  display: grid;
  gap: 16px;
}

.register-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #1f2937;
  font-size: 13px;
  font-weight: 900;
}

.form-group input {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border-radius: 17px;
  border: 1px solid #dbe3ef;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

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

.form-group input:hover {
  border-color: #cbd5e1;
}

.form-group input:focus {
  border-color: var(--blue);
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.12),
    0 12px 26px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.form-group small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.register-button {
  width: 100%;
  min-height: 55px;
  margin-top: 4px;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  font-size: 14px;
  font-weight: 950;
  box-shadow:
    0 18px 38px rgba(37, 99, 235, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease;
}

.register-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow:
    0 24px 54px rgba(37, 99, 235, 0.36),
    0 10px 22px rgba(124, 58, 237, 0.18);
}

/* FOOTER */

.register-footer {
  margin-top: 21px;
  padding-top: 18px;
  border-top: 1px solid #e5edf5;
  display: grid;
  gap: 5px;
}

.register-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.register-footer a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.register-footer a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */

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

  .register-brand {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .register-page {
    padding: 18px;
  }

  .register-brand,
  .register-card {
    padding: 26px;
    border-radius: 30px;
  }

  .register-preview h1 {
    font-size: 38px;
  }

  .register-card-header h2 {
    font-size: 33px;
  }

  .register-grid.two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .register-brand {
    display: none;
  }

  .register-shell {
    max-width: 100%;
  }

  .register-card {
    min-height: calc(100vh - 36px);
  }
}