.auth-body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-page);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--navy);
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-window {
  width: 100%;
  max-width: 960px;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 24px;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 24px 60px rgba(16, 35, 63, 0.18);
}

.auth-panel-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  padding: 56px 40px;
}

.auth-panel-brand::before,
.auth-panel-brand::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.25) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.6;
  pointer-events: none;
}

.auth-panel-brand::before {
  top: 24px;
  right: 24px;
}

.auth-panel-brand::after {
  bottom: 24px;
  left: 24px;
}

.auth-brand-content {
  position: relative;
  z-index: 1;
  max-width: 300px;
  text-align: center;
}

.auth-logo-badge {
  width: 64px;
  height: 64px;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--yellow);
}

.auth-logo-badge svg {
  width: 30px;
  height: 30px;
}

.auth-brand-title {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
}

.auth-brand-title span {
  color: var(--yellow);
}

.auth-brand-tagline {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.auth-panel-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 48px 44px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  min-width: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.auth-card h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}

.auth-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 28px;
}

.auth-card .form-group {
  margin-bottom: 18px;
}

.auth-card .form-group label {
  font-size: 13px;
  margin-bottom: 6px;
}

.auth-card .form-input {
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 10px;
}

.auth-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  display: flex;
  color: var(--text-muted);
  pointer-events: none;
}

.auth-input-icon svg {
  width: 17px;
  height: 17px;
}

.auth-card .form-input.has-icon {
  padding-left: 42px;
}

.auth-card .form-input.has-toggle {
  padding-right: 42px;
}

.form-input.has-toggle::-ms-reveal,
.form-input.has-toggle::-ms-clear {
  display: none;
}

.auth-password-toggle {
  position: absolute;
  right: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--text-muted);
}

.auth-password-toggle.has-value {
  display: flex;
}

.auth-password-toggle svg {
  width: 17px;
  height: 17px;
}

.auth-password-toggle .icon-eye-off {
  display: none;
}

.auth-password-toggle.is-visible .icon-eye {
  display: none;
}

.auth-password-toggle.is-visible .icon-eye-off {
  display: block;
}

.auth-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  row-gap: 10px;
  column-gap: 16px;
  margin-bottom: 22px;
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-checkbox label {
  font-size: 13px;
  color: var(--text-muted);
}

.auth-forgot-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--sky-blue);
  text-decoration: none;
}

.auth-forgot-link:hover {
  text-decoration: underline;
}

.auth-card .btn-admin {
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 10px;
}

.auth-card .btn-admin svg {
  width: 16px;
  height: 16px;
}

.btn-admin-yellow.btn-full {
  width: 100%;
  justify-content: center;
}

.auth-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 12px;
  color: var(--text-muted);
}

.auth-secure-note svg {
  width: 14px;
  height: 14px;
  color: var(--sky-blue);
}

.auth-footer-text {
  margin: 24px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 900px) {
  .auth-window {
    display: flex;
    flex-direction: column;
    max-width: 480px;
  }

  .auth-panel-brand {
    padding: 36px 24px;
  }

  .auth-panel-brand::before,
  .auth-panel-brand::after {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 560px) {
  .auth-shell {
    padding: 0;
    align-items: stretch;
  }

  .auth-window {
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-panel-brand {
    padding: 28px 20px;
  }

  .auth-brand-title {
    font-size: 22px;
  }

  .auth-panel-form {
    flex: 1;
    padding: 32px 20px;
  }
}

.form-field-error,
.form-summary-error {
  font-size: 13px;
  font-weight: 500;
}
