/**
 * Login — green top bar (unchanged look); body uses tiled texture image.
 */
.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #0f172a;
  background-color: #faf8f4;
  background-image: url("../images/login-paper-texture.svg");
  background-size: 256px 256px;
  background-repeat: repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.auth-body > * {
  position: relative;
  z-index: 1;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Top header (same green bar as before) ---- */
.auth-header {
  flex-shrink: 0;
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 55%, #14532d 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
  border-bottom: none;
}

.auth-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 24px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-header__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  max-width: 900px;
  text-align: left;
}

.auth-header__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.auth-header__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  align-items: flex-start;
  text-align: left;
}

.auth-header__line1 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.auth-header__line2 {
  font-size: 0.85rem;
  opacity: 0.94;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- Split: visual left, form right (over full-bleed bg) ---- */
.auth-split {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 0;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.auth-split__visual {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px 48px;
  background: linear-gradient(165deg, rgba(240, 253, 244, 0.92) 0%, rgba(236, 254, 255, 0.9) 45%, rgba(239, 246, 255, 0.92) 100%);
  border-right: 1px solid #e2e8f0;
}

.auth-split__figure {
  margin: 0;
  width: 100%;
  max-width: min(560px, 100%);
}

.auth-split__img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  border-radius: 16px;
  border: none;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 20px 50px rgba(15, 23, 42, 0.1);
}

.auth-split__caption {
  margin: 18px 0 0;
  font-size: 0.95rem;
  color: #334155;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.auth-split__form {
  flex: 0 0 44%;
  max-width: 480px;
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px 48px;
  box-sizing: border-box;
}

.auth-card {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.06),
    0 12px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
}

.auth-card__header {
  padding: 28px 28px 8px;
  text-align: left;
}

.auth-card__title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.auth-card__subtitle {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: #64748b;
}

.auth-card__body {
  padding: 8px 28px 28px;
}

.auth-alert {
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  text-align: center;
}

.auth-alert--danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.auth-alert--success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.auth-institute {
  text-align: center;
  font-size: 0.8125rem;
  color: #15803d;
  font-weight: 600;
  min-height: 1.25rem;
  margin-bottom: 4px;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  font-size: 0.9375rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input:focus {
  outline: none;
  border-color: #15803d;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.2);
}

.auth-input::placeholder {
  color: #94a3b8;
}

.auth-error {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: #dc2626;
  font-weight: 500;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: #475569;
}

.auth-remember input {
  width: 16px;
  height: 16px;
  accent-color: #15803d;
}

.auth-submit {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(135deg, #15803d 0%, #166534 50%, #14532d 100%);
  box-shadow: 0 2px 12px rgba(21, 128, 61, 0.4);
  transition: transform 0.12s, box-shadow 0.12s;
}

.auth-submit:hover {
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.45);
}

.auth-submit:active {
  transform: translateY(1px);
}

.auth-footer-note {
  flex-shrink: 0;
  margin: 0;
  padding: 12px 16px 20px;
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
}

@media (max-width: 900px) {
  .auth-split {
    flex-direction: column;
    padding: 0 16px;
  }

  .auth-split__visual {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 28px 20px 32px;
  }

  .auth-split__figure {
    max-width: 420px;
  }

  .auth-split__form {
    flex: 1;
    max-width: none;
    width: 100%;
    padding: 28px 0 40px;
  }
}

@media (max-width: 480px) {
  .auth-header__inner {
    padding: 14px 16px 16px;
  }

  .auth-header__brand {
    gap: 12px;
    max-width: 100%;
  }

  .auth-header__logo {
    width: 48px;
    height: 48px;
  }

  .auth-header__line1 {
    font-size: 0.82rem;
  }

  .auth-header__line2 {
    font-size: 0.72rem;
  }

  .auth-card__header,
  .auth-card__body {
    padding-left: 20px;
    padding-right: 20px;
  }
}
