:root {
  --main-color: rgb(160, 70, 243);
  --main-color-dark: blueviolet;
  --shadow-color: #f8f5ff;
  --border-color: rgb(97, 6, 182);
  --text-primary: #2d3748;
  --text-secondary: #718096;
  --bg-light: #f7fafc;
  --success-color: #48bb78;
  --warning-color: #ed8936;
  --danger-color: #f56565;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #ffffff;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.auth-container {
  height: 100vh;
  display: flex;
  align-items: center;
}

/* Brand Side Styling */
.auth-brand-side {
  background: var(--main-color-dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-brand-side::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.brand-content {
  text-align: center;
  z-index: 1;
  position: relative;
  /* max-width: 400px; */
  padding: 2rem;
}

.brand-logo .logo-icon {
  color: white;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.brand-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.features-list {
  text-align: left;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.feature-item i {
  margin-right: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  width: 20px;
}

/* Form Side Styling */
.auth-form a {
    text-decoration: none;
}

.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: white;
}

.auth-form-container {
  width: 100%;
  max-width: 450px;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(160, 70, 243, 0.1);
}

.auth-header {
  margin-bottom: 2rem;
}

.auth-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Social Login Buttons */
.social-btn {
  background: white;
  border: 2px solid #e2e8f0;
  color: var(--text-secondary);
  padding: 0.75rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.social-btn:hover {
  border-color: var(--main-color);
  color: var(--main-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(160, 70, 243, 0.15);
}

.social-btn i {
  font-size: 1.1rem;
}

/* Divider */
.divider {
  position: relative;
  text-align: center;
  margin: 2rem 0;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e2e8f0;
}

.divider span {
  background: white;
  padding: 0 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* Form Styling */
.form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.input-group {
  position: relative;
  margin-bottom: 0.5rem;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  z-index: 8;
  pointer-events: none;
  transition: color 0.3s ease;
}

/* Ensure icons remain visible when input is focused */
.input-group:focus-within .input-icon {
  color: var(--text-secondary);
}

/* Fix for when input loses focus */
.form-control:not(:focus) + .input-icon,
.input-group .input-icon {
  color: var(--text-secondary);
}

.form-control {
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fafafa;
}

.form-control:focus {
  border-color: var(--border-color);
  box-shadow: 0 0 0 3px rgba(160, 70, 243, 0.1);
  background: white;
  outline: none;
}

.form-control.is-invalid {
  border-color: var(--danger-color);
}

.form-control.is-valid {
  border-color: var(--success-color);
}

/* Password Group */
.password-group {
  position: relative;
}

/* Password field specific styling */
.password-group .form-control {
  padding-right: 3.5rem; /* Extra space for eye icon */
}

.password-group .form-control.is-valid,
.password-group .form-control.is-invalid {
  background-image: none; /* Remove Bootstrap's validation icons for password fields */
}

/* Custom validation icons for password fields */
.password-group .validation-icon {
  position: absolute;
  right: 3rem; /* Position before the eye icon */
  top: 50%;
  transform: translateY(-50%);
  z-index: 9;
  pointer-events: none;
}

.password-group .validation-icon.valid {
    color: green;
    text-shadow: 0 0 1px green;
    font-size: 1.5rem;
}

.password-group .validation-icon.invalid {
  color: var(--danger-color);
  text-shadow: 0 0 1px var(--danger-color);
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 10;
  padding: 0.25rem;
  border-radius: 4px;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: var(--main-color);
}

/* Password Strength */
.password-strength {
  margin-top: 0.5rem;
}

.strength-bar {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.strength-fill {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.strength-fill.weak {
  width: 25%;
  background: var(--danger-color);
}

.strength-fill.fair {
  width: 50%;
  background: var(--warning-color);
}

.strength-fill.good {
  width: 75%;
  background: #38b2ac;
}

.strength-fill.strong {
  width: 100%;
  background: var(--success-color);
}

.strength-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Terms Text */
.terms-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: center;
}

.terms-link {
  color: var(--main-color);
  text-decoration: none;
  font-weight: 500;
}

.terms-link:hover {
  color: var(--main-color-dark);
  text-decoration: underline;
}

/* Auth Button */
.auth-btn {
  background: var(--main-color);
  border: none;
  color: white;
  padding: 1rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.auth-btn:hover {
  background: var(--main-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(160, 70, 243, 0.3);
  color: #fff;
}

.auth-btn:active {
  transform: translateY(0);
}

.auth-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Form Check */
.form-check-input:checked {
  background-color: var(--main-color);
  border-color: var(--main-color);
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(160, 70, 243, 0.25);
}

.form-check-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Links */
.forgot-link,
.switch-link {
  color: var(--main-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.forgot-link:hover,
.switch-link:hover {
  color: var(--main-color-dark);
  text-decoration: underline;
}

.switch-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Invalid Feedback */
.invalid-feedback {
  display: block;
  color: var(--danger-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Success Message */
.success-message {
  background: rgba(72, 187, 120, 0.1);
  border: 1px solid var(--success-color);
  color: var(--success-color);
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 500;
}

/* Error Message */
.error-message {
  background: rgba(245, 101, 101, 0.1);
  border: 1px solid var(--danger-color);
  color: var(--danger-color);
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .auth-form-container {
    margin: 1rem;
    padding: 1.5rem;
  }

  .brand-title {
    font-size: 2rem;
  }

  .auth-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .auth-form-container {
    margin: 0.5rem;
    padding: 1rem;
    border-radius: 16px;
  }

  .social-btn span {
    display: none !important;
  }

  .social-btn {
    padding: 0.75rem 0.5rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.bi-arrow-clockwise {
  animation: spin 1s linear infinite;
}

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

/* ==========================================================================
   SIGN IN PAGE REFRESH
   Scoped so other account/auth templates using auth.css are not disturbed.
   ========================================================================== */

body.auth-signin {
  --auth-ink: #241046;
  --auth-ink-soft: #5b5170;
  --auth-violet: #8a2be2;
  --auth-violet-deep: #6a11b8;
  --auth-line: #e6dfed;
  --auth-surface: #f8f6fb;
  --auth-mint: #b8f6d5;

  min-height: 100vh;
  overflow-x: hidden;
  color: var(--auth-ink);
  background: #fff;
  font-family: "Prompt", sans-serif;
}

body.auth-signin .auth-container {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(28rem, .96fr);
  width: 100%;
  min-height: 100vh;
  height: auto;
  align-items: stretch;
}

body.auth-signin .auth-brand-side {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  background: var(--auth-ink);
}

body.auth-signin .auth-brand-side::before {
  display: none;
}

body.auth-signin .auth-brand-side__inner {
  display: flex;
  width: min(100%, 47rem);
  min-height: 100vh;
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 4rem);
  flex-direction: column;
  justify-content: center;
}

body.auth-signin .auth-brand-mark,
body.auth-signin .auth-mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  width: fit-content;
  font-weight: 700;
  text-decoration: none;
}

body.auth-signin .auth-brand-mark {
  margin-bottom: clamp(2.2rem, 5vw, 4rem);
  color: #fff;
  font-size: 1.15rem;
}

body.auth-signin .auth-brand-mark__icon,
body.auth-signin .auth-mobile-brand__icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: .7rem;
}

body.auth-signin .auth-brand-mark__icon {
  color: #fff;
  background: var(--auth-violet);
}

body.auth-signin .auth-brand-mark__icon svg,
body.auth-signin .auth-mobile-brand__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

body.auth-signin .auth-showcase-copy {
  max-width: 38rem;
}

body.auth-signin .auth-showcase-copy__eyebrow {
  margin: 0 0 .9rem;
  color: #ceb6f2;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .16em;
}

body.auth-signin .auth-showcase-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.6rem, 4.7vw, 4.5rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}

body.auth-signin .auth-showcase-copy__sub {
  max-width: 34rem;
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, .74);
  font-size: clamp(.95rem, 1.2vw, 1.08rem);
  line-height: 1.65;
}

body.auth-signin .auth-product-preview {
  position: relative;
  width: min(100%, 36rem);
  margin-top: clamp(2rem, 4.5vw, 3.5rem);
  padding: 1.25rem;
  color: var(--auth-ink);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 1.35rem;
  box-shadow: 0 30px 70px -38px rgba(0, 0, 0, .65);
}

body.auth-signin .auth-product-preview__top,
body.auth-signin .auth-product-preview__profile,
body.auth-signin .auth-product-preview__analytics {
  display: flex;
  align-items: center;
}

body.auth-signin .auth-product-preview__top {
  justify-content: space-between;
  gap: 1rem;
}

body.auth-signin .auth-product-preview__label {
  display: block;
  margin-bottom: .2rem;
  color: #8e829e;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
}

body.auth-signin .auth-product-preview__top strong {
  display: block;
  color: var(--auth-ink);
  font-size: .95rem;
  font-weight: 700;
}

body.auth-signin .auth-product-preview__status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .48rem .7rem;
  color: #116b42;
  background: #e9fff4;
  border-radius: 999px;
  font-size: .69rem;
  font-weight: 700;
}

body.auth-signin .auth-product-preview__status i {
  width: .45rem;
  height: .45rem;
  background: #20b26b;
  border-radius: 50%;
}

body.auth-signin .auth-product-preview__profile {
  gap: .8rem;
  margin-top: 1.1rem;
  padding: 1rem 0;
  border-top: 1px solid #eee8f2;
  border-bottom: 1px solid #eee8f2;
}

body.auth-signin .auth-product-preview__avatar {
  display: grid;
  width: 2.85rem;
  height: 2.85rem;
  flex: 0 0 2.85rem;
  place-items: center;
  color: #fff;
  background: var(--auth-violet);
  border-radius: 50%;
  font-size: .92rem;
  font-weight: 700;
}

body.auth-signin .auth-product-preview__profile > div:nth-child(2) {
  min-width: 0;
}

body.auth-signin .auth-product-preview__profile strong,
body.auth-signin .auth-product-preview__profile span {
  display: block;
}

body.auth-signin .auth-product-preview__profile strong {
  font-size: .86rem;
}

body.auth-signin .auth-product-preview__profile span {
  margin-top: .12rem;
  color: var(--auth-ink-soft);
  font-size: .68rem;
}

body.auth-signin .auth-product-preview__edit {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  margin-left: auto;
  place-items: center;
  color: var(--auth-violet-deep);
  background: #f4effa;
  border-radius: .65rem;
}

body.auth-signin .auth-product-preview__edit svg {
  width: 1rem;
  height: 1rem;
}

body.auth-signin .auth-product-preview__links {
  display: grid;
  gap: .55rem;
  margin-top: 1rem;
}

body.auth-signin .auth-product-link {
  display: grid;
  grid-template-columns: 2.45rem minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  min-height: 3.65rem;
  padding: .5rem .7rem;
  background: #faf9fc;
  border: 1px solid #eee8f2;
  border-radius: .8rem;
}

body.auth-signin .auth-product-link--featured {
  color: #fff;
  background: var(--auth-violet);
  border-color: var(--auth-violet);
}

body.auth-signin .auth-product-link__icon {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border-radius: .65rem;
}

body.auth-signin .auth-product-link:not(.auth-product-link--featured) .auth-product-link__icon {
  color: var(--auth-violet-deep);
  background: #efe6f8;
}

body.auth-signin .auth-product-link__icon--calendar {
  color: #3b27e0 !important;
  background: #eceaff !important;
}

body.auth-signin .auth-product-link__icon--shop {
  color: #d52f7f !important;
  background: #ffe9f4 !important;
}

body.auth-signin .auth-product-link__icon svg {
  width: 1rem;
  height: 1rem;
}

body.auth-signin .auth-product-link strong,
body.auth-signin .auth-product-link small {
  display: block;
}

body.auth-signin .auth-product-link strong {
  color: inherit;
  font-size: .78rem;
  font-weight: 700;
}

body.auth-signin .auth-product-link small {
  margin-top: .12rem;
  color: var(--auth-ink-soft);
  font-size: .62rem;
}

body.auth-signin .auth-product-link--featured small {
  color: rgba(255, 255, 255, .75);
}

body.auth-signin .auth-product-link em {
  color: inherit;
  font-size: 1.35rem;
  font-style: normal;
  line-height: 1;
}

body.auth-signin .auth-product-preview__analytics {
  display: grid;
  grid-template-columns: auto minmax(7rem, 1fr) auto;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee8f2;
}

body.auth-signin .auth-product-preview__analytics > div:first-child span,
body.auth-signin .auth-product-preview__trend small {
  display: block;
  color: #8e829e;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .07em;
}

body.auth-signin .auth-product-preview__analytics > div:first-child strong {
  display: block;
  margin-top: .08rem;
  font-size: 1.25rem;
  letter-spacing: -.04em;
}

body.auth-signin .auth-product-preview__spark {
  height: 2.35rem;
  color: var(--auth-violet);
}

body.auth-signin .auth-product-preview__spark svg {
  width: 100%;
  height: 100%;
}

body.auth-signin .auth-product-preview__trend {
  text-align: right;
}

body.auth-signin .auth-product-preview__trend span {
  display: block;
  color: #168d57;
  font-size: .8rem;
  font-weight: 700;
}

body.auth-signin .auth-product-preview__floating {
  position: absolute;
  top: 4.6rem;
  right: -2.1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .72rem .85rem;
  color: var(--auth-ink);
  background: var(--auth-mint);
  border: 1px solid rgba(17, 107, 66, .12);
  border-radius: .85rem;
  box-shadow: 0 18px 36px -24px rgba(0, 0, 0, .55);
}

body.auth-signin .auth-product-preview__floating-icon {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: .55rem;
}

body.auth-signin .auth-product-preview__floating-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

body.auth-signin .auth-product-preview__floating strong,
body.auth-signin .auth-product-preview__floating small {
  display: block;
}

body.auth-signin .auth-product-preview__floating strong {
  font-size: .68rem;
}

body.auth-signin .auth-product-preview__floating small {
  margin-top: .1rem;
  color: #416151;
  font-size: .56rem;
}

body.auth-signin .auth-showcase-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.35rem;
  margin-top: 1.7rem;
  color: rgba(255, 255, 255, .68);
  font-size: .72rem;
  font-weight: 500;
}

body.auth-signin .auth-showcase-footer span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

body.auth-signin .auth-showcase-footer i {
  color: #d4bef4;
}

body.auth-signin .auth-form-side {
  display: flex;
  min-width: 0;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  background: #fff;
}

body.auth-signin .auth-form-container {
  width: min(100%, 29rem);
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.auth-signin .auth-mobile-brand__icon {
  color: #fff;
  background: var(--auth-violet);
}

body.auth-signin .auth-header {
  margin-bottom: 1.8rem;
  text-align: left !important;
}

body.auth-signin .auth-header__eyebrow {
  margin: 0 0 .65rem;
  color: var(--auth-violet);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
}

body.auth-signin .auth-title {
  margin: 0;
  color: var(--auth-ink);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
}

body.auth-signin .auth-subtitle {
  margin: .7rem 0 0;
  color: var(--auth-ink-soft);
  font-size: .95rem;
  line-height: 1.55;
}

body.auth-signin .social-login {
  margin: 0;
}

body.auth-signin .social-login__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}

body.auth-signin .social-btn {
  min-height: 3.2rem;
  padding: .7rem .85rem;
  color: var(--auth-ink);
  background: #fff;
  border: 1px solid #ded7e6;
  border-radius: .75rem;
  font-size: .86rem;
  font-weight: 600;
  box-shadow: none;
  transition:
    border-color .18s ease,
    background-color .18s ease,
    transform .18s ease;
}

body.auth-signin .social-btn:hover,
body.auth-signin .social-btn:focus-visible {
  color: var(--auth-ink);
  background: #faf8fd;
  border-color: #bca4dc;
  box-shadow: none;
  transform: translateY(-1px);
}

body.auth-signin .social-btn i {
  color: #6e6380;
  font-size: 1rem;
}

body.auth-signin .divider {
  margin: 1.55rem 0;
}

body.auth-signin .divider::before {
  background: #e7e1ed;
}

body.auth-signin .divider span {
  padding: 0 .8rem;
  color: #91879f;
  background: #fff;
  font-size: .74rem;
}

body.auth-signin .auth-form {
  margin: 0;
}

body.auth-signin .auth-field + .auth-field {
  margin-top: 1.15rem;
}

body.auth-signin .auth-field__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body.auth-signin .form-label {
  margin-bottom: .45rem;
  color: var(--auth-ink);
  font-size: .8rem;
  font-weight: 700;
}

body.auth-signin .forgot-link {
  margin-bottom: .45rem;
  color: var(--auth-violet-deep);
  font-size: .76rem;
  font-weight: 600;
}

body.auth-signin .input-group {
  position: relative;
  display: block;
  margin-bottom: 0;
}

body.auth-signin .input-icon {
  left: .95rem;
  color: #82768f;
  font-size: .95rem;
}

body.auth-signin .form-control {
  width: 100%;
  min-height: 3.4rem;
  padding: .8rem 2.9rem .8rem 2.7rem;
  color: var(--auth-ink);
  background: #fff;
  border: 1px solid #dcd5e5;
  border-radius: .75rem !important;
  font-size: .9rem;
  box-shadow: none;
}

body.auth-signin .form-control::placeholder {
  color: #aaa1b5;
}

body.auth-signin .form-control:hover {
  border-color: #baa5d4;
}

body.auth-signin .form-control:focus {
  color: var(--auth-ink);
  background: #fff;
  border-color: var(--auth-violet);
  box-shadow: 0 0 0 3px rgba(138, 43, 226, .1);
}

body.auth-signin .form-control.is-valid {
  border-color: #4aa878;
}

body.auth-signin .form-control.is-invalid {
  border-color: var(--danger-color);
}

body.auth-signin .password-toggle {
  right: .85rem;
  color: #776b86;
}

body.auth-signin .password-toggle:hover {
  color: var(--auth-violet-deep);
}

body.auth-signin .auth-btn {
  min-height: 3.45rem;
  margin-top: 1.5rem;
  padding: .8rem 1.2rem;
  color: #fff;
  background: var(--auth-violet);
  border: 1px solid var(--auth-violet);
  border-radius: .8rem;
  font-size: .9rem;
  font-weight: 700;
}

body.auth-signin .auth-btn:hover,
body.auth-signin .auth-btn:focus-visible {
  color: #fff;
  background: var(--auth-violet-deep);
  border-color: var(--auth-violet-deep);
  box-shadow: 0 16px 30px -20px rgba(106, 17, 184, .7);
  transform: translateY(-2px);
}

body.auth-signin .auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  margin-top: 1.35rem;
}

body.auth-signin .switch-text,
body.auth-signin .switch-link {
  font-size: .8rem;
}

body.auth-signin .switch-text {
  color: var(--auth-ink-soft);
}

body.auth-signin .switch-link {
  color: var(--auth-violet-deep);
  font-weight: 700;
}

body.auth-signin .invalid-feedback {
  margin-top: .35rem;
  font-size: .72rem;
}

body.auth-signin .success-message,
body.auth-signin .error-message {
  margin-bottom: 1rem;
  padding: .85rem .9rem;
  border-radius: .7rem;
  font-size: .78rem;
  text-align: left;
}

body.auth-signin .fade-in {
  animation: authSignInFade .42s ease both;
}

@keyframes authSignInFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1199.98px) {
  body.auth-signin .auth-container {
    grid-template-columns: minmax(0, .95fr) minmax(27rem, 1.05fr);
  }

  body.auth-signin .auth-brand-side__inner {
    padding: 2.5rem;
  }

  body.auth-signin .auth-product-preview__floating {
    right: -1rem;
  }
}

@media (max-width: 991.98px) {
  body.auth-signin .auth-container {
    grid-template-columns: 1fr;
  }

  body.auth-signin .auth-brand-side {
    display: none;
  }

  body.auth-signin .auth-form-side {
    min-height: 100vh;
    padding: 2.5rem 1.5rem;
  }

  body.auth-signin .auth-form-container {
    width: min(100%, 30rem);
  }

  
}

@media (max-width: 575.98px) {
  body.auth-signin .auth-form-side {
    align-items: flex-start;
    padding: 1.5rem 1rem 2rem;
  }

  body.auth-signin .auth-form-container {
    margin: 0;
    padding: 0;
  }

  body.auth-signin .auth-header {
    margin-bottom: 1.5rem;
  }

  body.auth-signin .auth-title {
    font-size: 2rem;
  }

  body.auth-signin .social-login__grid {
    gap: .55rem;
  }

  body.auth-signin .social-btn {
    min-height: 3rem;
    padding-inline: .55rem;
  }
}

@media (max-height: 820px) and (min-width: 992px) {
  body.auth-signin .auth-brand-side__inner {
    justify-content: flex-start;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  body.auth-signin .auth-brand-mark {
    margin-bottom: 1.8rem;
  }

  body.auth-signin .auth-showcase-copy h1 {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
  }

  body.auth-signin .auth-product-preview {
    margin-top: 1.8rem;
  }

  body.auth-signin .auth-product-link {
    min-height: 3.2rem;
  }

  body.auth-signin .auth-showcase-footer {
    margin-top: 1.2rem;
  }

  body.auth-signin .auth-form-side {
    align-items: flex-start;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}



@media (max-height: 1000px) and (min-width: 992px) {
  body.auth-signin .auth-brand-side__inner {
    justify-content: flex-start;
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }

  body.auth-signin .auth-brand-mark {
    margin-bottom: 1.5rem;
  }

  body.auth-signin .auth-showcase-copy h1 {
    font-size: clamp(2.4rem, 3.7vw, 3.45rem);
    max-width: 33rem;
  }

  body.auth-signin .auth-showcase-copy__sub {
    margin-top: .9rem;
    font-size: .92rem;
    line-height: 1.55;
  }

  body.auth-signin .auth-product-preview {
    margin-top: 1.5rem;
    padding: 1rem;
  }

  body.auth-signin .auth-product-preview__profile {
    margin-top: .8rem;
    padding: .75rem 0;
  }

  body.auth-signin .auth-product-preview__links {
    gap: .4rem;
    margin-top: .75rem;
  }

  body.auth-signin .auth-product-link {
    min-height: 3rem;
    padding-top: .35rem;
    padding-bottom: .35rem;
  }

  body.auth-signin .auth-product-preview__analytics {
    margin-top: .75rem;
    padding-top: .75rem;
  }

  body.auth-signin .auth-showcase-footer {
    margin-top: 1rem;
  }

  body.auth-signin .auth-form-side {
    align-items: center;
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.auth-signin .social-btn,
  body.auth-signin .auth-btn,
  body.auth-signin .fade-in {
    animation: none !important;
    transition: none !important;
  }
}


/* Local fallbacks for utility classes used by the sign-in loader. */
body.auth-signin .d-none {
  display: none !important;
}

body.auth-signin .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* Sign-in brand asset refinements */
body.auth-signin .auth-brand-mark__icon,
body.auth-signin .auth-mobile-brand__icon {
  display: inline-grid;
  width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

body.auth-signin .auth-brand-mark__icon img,
body.auth-signin .auth-mobile-brand__icon img {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

body.auth-signin .auth-form-logo {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 2rem;
  text-decoration: none;
}

body.auth-signin .auth-form-logo img {
  display: block;
  width: 120px;
  height: auto;
  object-fit: contain;
}

/* Restore the stronger social-login hover treatment */
body.auth-signin .social-btn:hover,
body.auth-signin .social-btn:focus-visible {
  color: var(--main-color);
  background: #fff;
  border-color: var(--main-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(160, 70, 243, .15);
}

body.auth-signin .social-btn:hover i,
body.auth-signin .social-btn:focus-visible i {
  color: var(--main-color);
}

@media (max-width: 991.98px) {
  body.auth-signin .auth-form-logo {
    margin-bottom: 2.25rem;
  }
}

@media (max-width: 575.98px) {
  body.auth-signin .auth-form-logo {
    margin-bottom: 1.75rem;
  }

  body.auth-signin .auth-form-logo img {
    width: 112px;
  }
}


/* Center the sign-in logo and separate it from the form heading */
body.auth-signin .auth-form-logo {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto 2.75rem;
}

body.auth-signin .auth-form-logo img {
  display: block;
  margin-inline: auto;
}

@media (max-width: 575.98px) {
  body.auth-signin .auth-form-logo {
    margin-bottom: 2.25rem;
  }
}


/* Sign-in logo sizing and spacing refinement */
body.auth-signin .auth-form-logo {
  margin-bottom: 3.25rem;
}

body.auth-signin .auth-form-logo img {
  width: 9rem;
  height: auto;
  object-fit: contain;
}

@media (max-width: 575.98px) {
  body.auth-signin .auth-form-logo {
    margin-bottom: 2.75rem;
  }

  body.auth-signin .auth-form-logo img {
    width: 8.5rem;
    height: auto;
  }
}


/* Replace the old handcrafted preview card with the exported product showcase image */
body.auth-signin .auth-product-visual {
  width: min(100%, 42rem);
  margin: clamp(2.75rem, 4.5vh, 3.35rem) 0 0;
  pointer-events: none;
  user-select: none;
}

body.auth-signin .auth-product-visual__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 44px rgba(9, 2, 25, .22));
}

/*
 * The desktop brand mark was removed from the left side.
 * Keep the user's mt-5 on .auth-showcase-copy, then balance the remaining
 * space through the parent rather than centering the whole stack.
 */
@media (min-width: 992px) {
  body.auth-signin .auth-brand-side__inner {
    justify-content: flex-start;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  body.auth-signin .auth-showcase-copy.mt-5 {
    margin-top: 3rem !important;
  }

  /* Keep the image flush with the same left edge as the copy. */
  body.auth-signin .auth-product-visual {
    margin-left: 0;
    margin-right: auto;
  }
}

/* Standard desktop / laptop heights */
@media (min-width: 992px) and (max-height: 1000px) {
  body.auth-signin .auth-product-visual {
    width: min(100%, 39rem);
    margin-top: 2.65rem;
  }
}

/* Shorter laptop windows still keep a visible gap without overflowing badly. */
@media (min-width: 992px) and (max-height: 820px) {
  body.auth-signin .auth-brand-side__inner {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  body.auth-signin .auth-showcase-copy.mt-5 {
    margin-top: 2.25rem !important;
  }

  body.auth-signin .auth-product-visual {
    width: min(100%, 36rem);
    margin-top: 2rem;
  }

  body.auth-signin .auth-showcase-footer {
    margin-top: .9rem;
  }
}

/* Very wide screens can breathe a little more without moving the visual right. */
@media (min-width: 1440px) and (min-height: 900px) {
  body.auth-signin .auth-brand-side__inner {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }

  body.auth-signin .auth-product-visual {
    width: min(100%, 42rem);
    margin-top: 3rem;
  }
}


/* ==========================================================================
   LEFT SHOWCASE SPACING BALANCE
   Grid controls the relationship between the copy, product visual and footer.
   ========================================================================== */

@media (min-width: 992px) {
  body.auth-signin .auth-brand-side__inner {
    display: grid;
    grid-template-rows: auto auto auto;
    align-content: start;
    row-gap: 0;
    padding-top: clamp(2rem, 4vh, 3.25rem);
    padding-bottom: clamp(2rem, 4vh, 3.25rem);
  }

  /* mt-5 is no longer needed in the HTML */
  body.auth-signin .auth-showcase-copy {
    margin-top: clamp(2.75rem, 5.5vh, 4.5rem);
  }

  /*
   * Use grid spacing instead of margin-centering the illustration.
   * This keeps a deliberate gap beneath the copy at every larger breakpoint.
   */
  body.auth-signin .auth-product-visual {
    width: min(100%, 42rem);
    margin: clamp(3rem, 5.5vh, 4.25rem) 0 0;
    justify-self: start;
  }

  body.auth-signin .auth-showcase-footer {
    margin-top: clamp(1.25rem, 2.2vh, 1.75rem);
  }
}

/* iPad Pro / narrow two-column layouts need extra vertical separation */
@media (min-width: 992px) and (max-width: 1199.98px) {
  body.auth-signin .auth-brand-side__inner {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }

  body.auth-signin .auth-showcase-copy {
    margin-top: 3rem;
  }

  body.auth-signin .auth-product-visual {
    width: 100%;
    margin-top: 3.5rem;
  }

  body.auth-signin .auth-showcase-footer {
    margin-top: 1.4rem;
  }
}

/* Short laptop heights should stay balanced without crushing the copy/image gap */
@media (min-width: 992px) and (max-height: 820px) {
  body.auth-signin .auth-brand-side__inner {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  body.auth-signin .auth-showcase-copy {
    margin-top: 1.5rem;
  }

  body.auth-signin .auth-product-visual {
    width: min(100%, 36rem);
    margin-top: 2.25rem;
  }

  body.auth-signin .auth-showcase-footer {
    margin-top: .9rem;
  }
}

/* Larger desktop canvases can breathe more */
@media (min-width: 1440px) and (min-height: 900px) {
  body.auth-signin .auth-brand-side__inner {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  body.auth-signin .auth-showcase-copy {
    margin-top: 3.5rem;
  }

  body.auth-signin .auth-product-visual {
    margin-top: 3.75rem;
  }
}


/* ==========================================================================
   LEFT AUTH PANEL, FINAL VERTICAL GRID BALANCE
   Remove `mt-5` from .auth-showcase-copy in the HTML.
   ========================================================================== */

@media (min-width: 992px) {
  body.auth-signin .auth-brand-side__inner {
    display: grid;

    /*
     * Explicit spacer rows keep the copy -> artwork gap larger than the
     * artwork -> trust-row gap, while the entire group stays vertically centered.
     */
    grid-template-rows:
      auto
      clamp(4.725rem, 7.875vh, 6.375rem)
      auto
      clamp(1.15rem, 2vh, 1.6rem)
      auto;

    align-content: center;
    justify-items: start;

    min-height: 100vh;
    padding-top: clamp(2rem, 3.5vh, 3.25rem);
    padding-bottom: clamp(2rem, 3.5vh, 3.25rem);
  }

  body.auth-signin .auth-showcase-copy {
    grid-row: 1;
    align-self: end;
    margin: 0 !important;
  }

  body.auth-signin .auth-product-visual {
    grid-row: 3;
    align-self: start;
    justify-self: start;

    width: min(100%, 42rem);
    margin: 0;
  }

  body.auth-signin .auth-showcase-footer {
    grid-row: 5;
    align-self: start;
    margin: 0;
  }
}

/*
 * This is the range that was visually riding too high in the recording.
 * Keep the full left composition centered and give the illustration a
 * deliberate amount of breathing room beneath the copy.
 */
@media (min-width: 1200px) and (max-width: 1424px) {
  body.auth-signin .auth-brand-side__inner {
    grid-template-rows:
      auto
      clamp(5.1rem, 8.4vh, 6.9rem)
      auto
      clamp(1.2rem, 2.1vh, 1.65rem)
      auto;
    align-content: center;
  }

  body.auth-signin .auth-product-visual {
    width: min(100%, 41rem);
  }
}

/* iPad Pro / narrow two-column layouts */
@media (min-width: 992px) and (max-width: 1199.98px) {
  body.auth-signin .auth-brand-side__inner {
    grid-template-rows:
      auto
      clamp(4.5rem, 7.5vh, 6rem)
      auto
      clamp(1.1rem, 1.8vh, 1.5rem)
      auto;

    align-content: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  body.auth-signin .auth-product-visual {
    width: 100%;
  }
}

/* Tall tablet / desktop canvases should remain centered, not anchored to the top. */
@media (min-width: 992px) and (min-height: 1100px) {
  body.auth-signin .auth-brand-side__inner {
    grid-template-rows:
      auto
      clamp(5.25rem, 8.25vh, 7.125rem)
      auto
      clamp(1.25rem, 2vh, 1.7rem)
      auto;

    align-content: center;
  }
}

/* Short laptop windows get tighter gaps so the centered composition still fits. */
@media (min-width: 992px) and (max-height: 820px) {
  body.auth-signin .auth-brand-side__inner {
    grid-template-rows:
      auto
      3.225rem
      auto
      .9rem
      auto;

    align-content: center;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  body.auth-signin .auth-product-visual {
    width: min(100%, 36rem);
  }
}


/* ==========================================================================
   LEFT AUTH PANEL, FORCE THE COPY -> PRODUCT GAP TO BE VISIBLY LARGER
   This intentionally overrides the earlier breakpoint stack.
   ========================================================================== */

@media (min-width: 992px) {
  body.auth-signin .auth-brand-side__inner {
    display: grid !important;
    grid-template-rows: auto auto auto !important;
    align-content: center !important;
    justify-items: start;
    min-height: 100vh;
  }

  body.auth-signin .auth-showcase-copy {
    grid-row: 1 !important;
    margin: 0 !important;
  }

  body.auth-signin .auth-product-visual {
    grid-row: 2 !important;
    justify-self: start;
    width: min(100%, 42rem);

    /* This is the actual visible separation from the copy above. */
    margin: 4.25rem 0 0 !important;
  }

  body.auth-signin .auth-showcase-footer {
    grid-row: 3 !important;
    margin: 1.35rem 0 0 !important;
  }
}

/* Narrow desktop / iPad Pro two-column range */
@media (min-width: 992px) and (max-width: 1199.98px) {
  body.auth-signin .auth-product-visual {
    width: 100%;
    margin-top: 4.5rem !important;
  }
}

/* The range you specifically called out */
@media (min-width: 1200px) and (max-width: 1424px) {
  body.auth-signin .auth-product-visual {
    width: min(100%, 41rem);
    margin-top: 4.75rem !important;
  }
}

/* Larger desktop */
@media (min-width: 1425px) {
  body.auth-signin .auth-product-visual {
    margin-top: 4.5rem !important;
  }
}

/* Short screens still need to fit without becoming cramped */
@media (min-width: 992px) and (max-height: 820px) {
  body.auth-signin .auth-product-visual {
    width: min(100%, 36rem);
    margin-top: 3rem !important;
  }

  body.auth-signin .auth-showcase-footer {
    margin-top: .9rem !important;
  }
}

/* ==========================================================================
   SIGN UP PAGE
   Reuses the refreshed sign-in shell and only adjusts the denser form.
   ========================================================================== */

body.auth-signup .auth-form-container {
  width: min(100%, 30rem);
}

body.auth-signup .auth-form-logo {
  margin-bottom: 2.2rem;
}

body.auth-signup .auth-header {
  margin-bottom: 1.35rem;
}

body.auth-signup .auth-subtitle {
  margin-top: .55rem;
}

body.auth-signup .divider {
  margin: 1.25rem 0;
}

body.auth-signup .auth-field + .auth-field {
  margin-top: .95rem;
}

body.auth-signup .password-strength {
  margin-top: .55rem !important;
}

body.auth-signup .strength-bar {
  height: 4px;
  margin-bottom: .35rem;
  overflow: hidden;
  background: #ece6f2;
  border-radius: 999px;
}

body.auth-signup .strength-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width .2s ease, background-color .2s ease;
}

body.auth-signup .strength-fill.weak {
  width: 20%;
  background: #ef476f;
}

body.auth-signup .strength-fill.fair {
  width: 45%;
  background: #f59e0b;
}

body.auth-signup .strength-fill.good {
  width: 72%;
  background: #7c3aed;
}

body.auth-signup .strength-fill.strong {
  width: 100%;
  background: #21a366;
}

body.auth-signup .strength-text {
  display: block;
  color: var(--auth-ink-soft);
  font-size: .69rem;
  line-height: 1.4;
}

body.auth-signup .terms-text {
  margin: 1.05rem 0 0;
  color: var(--auth-ink-soft);
  font-size: .72rem;
  line-height: 1.6;
  text-align: left;
}

body.auth-signup .terms-link {
  color: var(--auth-violet-deep);
  font-weight: 600;
  text-decoration: none;
}

body.auth-signup .terms-link:hover {
  text-decoration: underline;
}

body.auth-signup .auth-btn {
  margin-top: 1.15rem;
}

body.auth-signup .auth-switch {
  margin-top: 1rem;
}

/*
 * Sign-up is denser than sign-in, so keep the right panel vertically centered
 * but reduce top/bottom padding slightly on normal laptop heights.
 */
@media (min-width: 992px) {
  body.auth-signup .auth-form-side {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }
}

@media (min-width: 992px) and (max-height: 900px) {
  body.auth-signup .auth-form-logo {
    margin-bottom: 1.55rem;
  }

  body.auth-signup .auth-header {
    margin-bottom: 1rem;
  }

  body.auth-signup .auth-title {
    font-size: 2.2rem;
  }

  body.auth-signup .social-btn {
    min-height: 3rem;
  }

  body.auth-signup .divider {
    margin: 1rem 0;
  }

  body.auth-signup .auth-field + .auth-field {
    margin-top: .8rem;
  }

  body.auth-signup .terms-text {
    margin-top: .85rem;
  }

  body.auth-signup .auth-btn {
    margin-top: .9rem;
  }
}

@media (max-width: 575.98px) {
  body.auth-signup .auth-form-logo {
    margin-bottom: 1.8rem;
  }

  body.auth-signup .terms-text {
    font-size: .7rem;
  }
}
