/* =========================================================================
   CommandX · Sign-in screen (AuthLayout / Login)
   Block: cx-auth
   ========================================================================= */

.cx-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--cx-space-4);
  background:
    radial-gradient(1000px 500px at 10% -5%, rgba(31, 42, 122, 0.08), transparent 60%),
    radial-gradient(800px 600px at 95% 0%, rgba(227, 33, 25, 0.05), transparent 60%),
    #f8f9ff;
}

@media (min-width: 768px) {
  .cx-auth {
    padding: var(--cx-space-6);
  }
}

.cx-auth__card {
  width: 100%;
  max-width: 1040px;
  overflow: hidden;
  border: 1px solid var(--cx-slate-200);
  border-radius: var(--cx-radius-xl);
  background-color: var(--cx-surface);
  box-shadow: 0 16px 36px -4px rgba(17, 26, 77, 0.14), 0 6px 12px -2px rgba(17, 26, 77, 0.08);
}

/* Left: brand panel */
.cx-auth__brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--cx-space-6);
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

@media (min-width: 992px) {
  .cx-auth__brand {
    border-right: 1px solid var(--cx-slate-200);
  }
}

@media (min-width: 768px) {
  .cx-auth__brand,
  .cx-auth__form {
    padding: 3rem;
  }

  /* Keep the space under the footer equal to the space above the logo. */
  .cx-auth__brand {
    padding-bottom: var(--cx-space-6);
  }
}

.cx-auth__hero {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--cx-space-6) 0;
  text-align: center;
}

.cx-auth__logo {
  width: auto;
  max-width: 85%;
  height: 150px;
  object-fit: contain;
}

.cx-auth__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--cx-space-4);
  border-top: 1px solid var(--cx-slate-200);
  font-size: var(--cx-fs-sm);
  color: var(--cx-text-muted);
}

.cx-auth__footer strong {
  color: var(--cx-navy);
}

/* "Powered by : ATULIT" + small emblem */
.cx-auth__powered {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.cx-auth__powered-logo {
  width: auto;
  height: 24px;
  object-fit: contain;
}

/* Right: form panel */
.cx-auth__form {
  padding: var(--cx-space-6);
  background-color: var(--cx-surface);
}

.cx-auth__form-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--cx-space-6);
}

.cx-auth__form-logo {
  width: auto;
  max-width: 140px;
  height: 44px;
  object-fit: contain;
}

.cx-auth__title {
  margin-bottom: var(--cx-space-1);
  font-size: var(--cx-fs-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cx-text-heading);
}

.cx-auth__subtitle {
  margin-bottom: var(--cx-space-6);
  font-size: var(--cx-fs-base);
  color: var(--cx-text-muted);
}

/* Taller inputs on the sign-in form */
.cx-auth input.form-control {
  min-height: 3rem;
  font-size: var(--cx-fs-md);
}

.cx-auth__toggle {
  border-left: 0;
  color: var(--cx-text-subtle);
}

.cx-auth__submit {
  width: 100%;
  min-height: 3.125rem;
  margin-top: var(--cx-space-2);
  font-size: var(--cx-fs-md);
  box-shadow: 0 4px 14px rgba(31, 42, 122, 0.25);
}
