/*!
 * Asim & Co — sign-in screens
 * ---------------------------------------------------------------------------
 * Two columns: a brand panel carrying the company seal, name and branch (the
 * same identity block as the legacy header), and the form itself.
 */

.ac-auth {
  display: flex;
  min-height: 100vh;
  background: var(--ac-surface);
}

/* ---------------------------------------------------------- brand panel */
.ac-auth-brand {
  flex: 0 0 44%;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  color: #fff;
  background: linear-gradient(160deg, var(--ac-ink) 0%, #1f2733 60%, var(--ac-primary-hover) 160%);
  position: relative;
  overflow: hidden;
}

/* Faint concentric rings, echoing the seal. */
.ac-auth-brand::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  bottom: -200px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.ac-auth-brand-inner {
  position: relative;
  z-index: 1;
  margin-block: auto;
  max-width: 30rem;
}

/*
 * The seal is transparent with black lettering, so on this dark panel it
 * needs a light disc behind it to stay legible.
 */
.ac-auth-seal {
  width: clamp(150px, 15vw, 210px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: 2.25rem;
  padding: 3%;
  background: #fff;
  border-radius: 50%;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.45));
}

/* Company name set as one lockup: headline, then the legal suffix in a
   lighter weight so "(Pvt) Limited" does not compete with the name. */
.ac-auth-company {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
}

.ac-auth-company-suffix {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.ac-auth-rule {
  display: block;
  width: 64px;
  height: 3px;
  border-radius: 2px;
  margin: 1.75rem 0 1.5rem;
  background: linear-gradient(90deg, var(--ac-primary), rgba(169, 52, 57, 0));
}

.ac-auth-branch {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 0.5rem;
}

.ac-auth-tagline {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  max-width: 24rem;
}

.ac-auth-foot {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

/* ----------------------------------------------------------- form panel */
.ac-auth-form {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: var(--ac-surface);
}

.ac-auth-form-inner {
  width: 100%;
  max-width: 25rem;
}

/* Compact brand lockup shown above the form on small screens. */
.ac-auth-mini {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.ac-auth-mini img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.ac-auth-mini img,
.ac-auth-form-inner img {
  border-radius: 50%;
}

.ac-auth-mini .ac-brand-name {
  font-size: 1rem;
}

.ac-auth-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ac-heading);
  margin: 0 0 0.375rem;
}

.ac-auth-lead {
  font-size: 0.875rem;
  color: var(--ac-muted);
  margin: 0 0 1.75rem;
}

.ac-auth-form .form-control {
  height: 46px;
}

.ac-auth-form .input-group .form-control {
  border-end-end-radius: 0;
  border-start-end-radius: 0;
}

.ac-auth-form .btn-primary {
  height: 46px;
  font-weight: 600;
}

.ac-auth-meta {
  font-size: 0.875rem;
  color: var(--ac-muted);
  text-align: center;
  margin: 1.25rem 0 0;
}

.ac-auth-meta a {
  color: var(--ac-primary);
  font-weight: 500;
  text-decoration: none;
}

.ac-auth-meta a:hover {
  text-decoration: underline;
}

@media (min-width: 992px) {
  .ac-auth-brand {
    display: flex;
  }

  .ac-auth-mini {
    display: none;
  }
}
