/* ===================================================================
   ADMIN LOGIN — Enterprise Login Page
   ===================================================================
   Scoped with `al-*` prefix (Admin Login).
   Clean enterprise: no borders, subtle shadows, focus rings.
   Uses CSS vars from enterprise_base.css.
   =================================================================== */

/* ── PAGE LAYOUT ── */
.al-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(92, 125, 156, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(92, 125, 156, 0.04) 0%, transparent 50%),
    oklch(var(--b2));
}

/* ── LOGIN CARD ── */
.al-card {
  width: 100%;
  max-width: 420px;
  background: oklch(var(--b1));
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 2.5rem 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* ── LOGO ROW ── */
.al-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}

.al-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.al-logo--trmla {
  height: 50px;
}
.al-logo--tr {
  height: 54px;
}

.al-logos__divider {
  width: 1px;
  height: 36px;
  background: oklch(var(--bc) / 0.12);
  flex-shrink: 0;
}

/* ── HEADING ── */
.al-heading {
  text-align: center;
}
.al-heading__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: oklch(var(--bc));
  margin: 0 0 0.25rem;
}
.al-heading__subtitle {
  font-size: 0.8125rem;
  color: oklch(var(--bc) / 0.45);
  font-weight: 400;
  margin: 0;
}

/* ── FORM FIELDS ── */
.al-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.al-field + .al-field {
  margin-top: 0.25rem;
}

.al-field__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: oklch(var(--bc) / 0.65);
  letter-spacing: 0.01em;
}

.al-field__input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: oklch(var(--bc));
  background: oklch(var(--b2));
  border: 1.5px solid oklch(var(--bc) / 0.10);
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.al-field__input::placeholder {
  color: oklch(var(--bc) / 0.3);
}

/* ── FOCUS STATE — Enterprise brand focus ring ── */
.al-field__input:focus {
  border-color: var(--brand-primary, #5C7D9C);
  box-shadow:
    0 0 0 3px rgba(92, 125, 156, 0.18),
    0 0 0 1px rgba(92, 125, 156, 0.3);
}

/* ── ERROR FIELD STATE ── */
.al-field__input--error {
  border-color: #dc2626;
}
.al-field__input--error:focus {
  border-color: #dc2626;
  box-shadow:
    0 0 0 3px rgba(220, 38, 38, 0.15),
    0 0 0 1px rgba(220, 38, 38, 0.25);
}

/* ── ERROR MESSAGES ── */
.al-error {
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  background: rgba(220, 38, 38, 0.06);
  color: #dc2626;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}
.al-error--warning {
  background: rgba(217, 119, 6, 0.06);
  color: #b45309;
}
.al-error--info {
  background: rgba(2, 132, 199, 0.08);
  color: #0369a1;
}

/* ── SUBMIT BUTTON ── */
.al-submit {
  width: 100%;
  padding: 0.6875rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand-primary, #5C7D9C);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  letter-spacing: 0.02em;
  margin-top: 0.25rem;
}
.al-submit:hover {
  background: var(--brand-primary-dark, #4a6580);
  box-shadow: 0 4px 12px rgba(92, 125, 156, 0.25);
}
.al-submit--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
  color: var(--brand-primary, #5C7D9C);
  border: 1.5px solid rgba(92, 125, 156, 0.28);
  box-shadow: none;
}
.al-submit--secondary:hover {
  background: rgba(92, 125, 156, 0.08);
  color: var(--brand-primary-dark, #4a6580);
  box-shadow: none;
}
.al-submit:active {
  transform: scale(0.985);
}
.al-submit:focus-visible {
  outline: 2px solid var(--brand-primary, #5C7D9C);
  outline-offset: 2px;
}

/* ── FORGOT PASSWORD LINK ── */
.al-forgot {
  text-align: right;
  margin-top: -0.125rem;
}
.al-forgot__link {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brand-primary, #5C7D9C);
  text-decoration: none;
  transition: color 0.15s;
}
.al-forgot__link:hover {
  color: var(--brand-primary-dark, #4a6580);
}

/* ── ENTERPRISE SIGN-IN SECTION ── */
.al-section-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: oklch(var(--bc) / 0.42);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.al-section-divider::before,
.al-section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: oklch(var(--bc) / 0.12);
}

.al-enterprise {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.al-enterprise__text {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: oklch(var(--bc) / 0.55);
}

/* ── FOOTER ── */
.al-footer {
  text-align: center;
  font-size: 0.6875rem;
  color: oklch(var(--bc) / 0.3);
  margin-top: 0.25rem;
}

/* ── LOGOUT ICON ── */
.al-logout-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  background: var(--brand-primary, #5C7D9C);
  margin: 0 auto 0.75rem;
}
