:root {
  --auth-ink: #0f172a;
  --auth-muted: #64748b;
  --auth-line: #dbe3ef;
  --auth-panel: #ffffff;
  --auth-soft: #f7f9fc;
  --auth-gold: #f5a800;
  --auth-gold-dark: #d88d00;
  --auth-danger: #b42318;
  --auth-success: #067647;
  --auth-radius-xl: 28px;
  --auth-radius-lg: 22px;
  --auth-radius-md: 16px;
  --auth-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  --auth-focus: 0 0 0 4px rgba(245, 168, 0, 0.22);
  --auth-font: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--auth-ink);
  background:
    linear-gradient(90deg, rgba(239, 244, 249, 0.84), rgba(239, 244, 249, 0.74)),
    url("../../login_page/image/login-bg.jpg") center / cover fixed no-repeat;
  font-family: var(--auth-font);
  font-size: 15px;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

a {
  color: var(--auth-gold-dark);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 0;
  box-shadow: var(--auth-focus);
}

.auth {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 12px;
}

.auth__shell {
  width: min(1120px, 100%);
  min-height: 0;
  height: min(620px, calc(100svh - 24px));
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.72);
  /* border-radius: var(--auth-radius-xl); */
  background: var(--auth-panel);
  box-shadow: var(--auth-shadow);
}

.auth__panel {
  position: relative;
  min-width: 0;
}

.auth__panel--brand {
  min-height: 0;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(145deg, #0b1220, #111827);
  clip-path: polygon(0 0, 100% 0, calc(100% - 78px) 100%, 0 100%);
  margin-right: -78px;
  z-index: 2;
}

.auth__campus-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.auth__brand-overlay {
  position: absolute;
  inset: 0;
  /* background:
    linear-gradient(135deg, rgba(11, 18, 32, 0.95), rgba(17, 24, 39, 0.78)),
    linear-gradient(0deg, rgba(11, 18, 32, 0.38), transparent 48%); */
}

.auth__brand-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 34px 104px 34px 46px;
}

.auth__brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.auth__logo,
.auth__form-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 18px;
  background: #ffffff;
  padding: 7px;
}

.auth__brand-copy {
  display: grid;
  gap: 2px;
}

.auth__brand-name {
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.05;
}

.auth__brand-name::first-letter {
  color: #ffffff;
}

.auth__brand-tagline {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.auth__hero {
  max-width: 560px;
  margin-top: auto;
}

.auth__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--auth-gold);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth__title {
  margin: 22px 0 0;
  color: #ffffff;
  font-size: clamp(36px, 4.6vw, 54px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

.auth__description {
  max-width: 510px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.auth__features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.auth__feature {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  font-size: 14px;
}

.auth__feature-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  color: var(--auth-gold);
  background: rgba(255, 255, 255, 0.07);
  font-size: 20px;
}

.auth__location {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--auth-radius-lg);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.07);
  font-style: normal;
}

.auth__location-icon {
  color: var(--auth-gold);
  font-size: 20px;
}

.auth__panel--form {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 40px 58px 26px 110px;
  background:
    radial-gradient(circle at top right, rgba(245, 168, 0, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), #ffffff);
  /* border-radius: 0 var(--auth-radius-xl) var(--auth-radius-xl) 0; */
  overflow: hidden;
}

.auth__panel--form::before {
  position: absolute;
  inset: 0 auto 0 -78px;
  width: 156px;
  background: linear-gradient(145deg, #0b1220, #111827);
  clip-path: polygon(0 0, 50% 0, 0 100%);
  content: "";
  pointer-events: none;
}

.auth__form-card {
  width: min(440px, 100%);
  margin: 0 auto;
}

.auth__form-header {
  margin-bottom: 20px;
  text-align: center;
}

.auth__form-logo {
  margin-bottom: 18px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.auth__form-title {
  margin: 0;
  color: var(--auth-ink);
  font-size: 34px;
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: 0;
}

.auth__form-subtitle {
  margin: 10px 0 0;
  color: var(--auth-muted);
  font-size: 16px;
}

.auth__alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
}

.auth__alert--success {
  color: var(--auth-success);
  background: #ecfdf3;
}

.auth__alert--error {
  color: var(--auth-danger);
  background: #fef3f2;
}

.auth__form {
  display: grid;
  gap: 14px;
}

.auth__field {
  display: grid;
  gap: 8px;
}

.auth__label {
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.auth__input-wrap {
  position: relative;
}

.auth__input-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  color: #7b8495;
  transform: translateY(-50%);
  pointer-events: none;
}

.auth__input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px 0 50px;
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius-md);
  color: var(--auth-ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.auth__input--password {
  padding-right: 54px;
}

.auth__input:focus {
  border-color: var(--auth-gold);
  background: #ffffff;
}

.auth__field--error .auth__input {
  border-color: #f04438;
}

.auth__hint,
.auth__error {
  font-size: 12px;
}

.auth__hint {
  color: #7b8495;
}

.auth__error {
  color: var(--auth-danger);
  font-weight: 700;
}

.auth__password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: #667085;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.auth__password-toggle:hover {
  color: var(--auth-ink);
  background: var(--auth-soft);
}

.auth__actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth__remember {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--auth-muted);
  font-size: 14px;
  cursor: pointer;
}

.auth__checkbox {
  position: absolute;
  width: 20px;
  height: 20px;
  opacity: 0;
}

.auth__checkbox-box {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--auth-line);
  border-radius: 6px;
  background: #ffffff;
}

.auth__checkbox-box::after {
  width: 10px;
  height: 6px;
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  content: "";
  opacity: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}

.auth__checkbox:checked + .auth__checkbox-box {
  border-color: var(--auth-gold-dark);
  background: var(--auth-gold-dark);
}

.auth__checkbox:checked + .auth__checkbox-box::after {
  opacity: 1;
}

.auth__checkbox:focus-visible + .auth__checkbox-box {
  box-shadow: var(--auth-focus);
}

.auth__link {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.auth__button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: var(--auth-radius-md);
  color: #111827;
  background: linear-gradient(135deg, #ffc928, #f0a000 58%, #dc8f00);
  box-shadow: 0 14px 28px rgba(216, 141, 0, 0.24);
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.auth__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(216, 141, 0, 0.28);
}

.auth__button-icon {
  font-size: 14px;
}

.auth__footer {
  margin: 0;
  color: #667085;
  text-align: center;
  font-size: 13px;
}

.auth__secondary-link {
  margin-top: 18px;
  text-align: center;
}

@media (max-width: 1060px) {
  .auth > .auth__shell {
    grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1fr);
  }

  .auth .auth__brand-content,
  .auth .auth__panel--form {
    padding-left: 36px;
    padding-right: 36px;
  }

  .auth .auth__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body .auth {
    align-items: start;
    padding: 0;
    background: #ffffff;
  }

  body .auth > .auth__shell {
    min-height: 100vh;
    height: auto;
    display: block;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
  }

  .auth .auth__panel--brand {
    min-height: auto;
    clip-path: none;
    margin-right: 0;
  }

  .auth .auth__panel--form::before {
    display: none;
  }

  .auth .auth__campus-image,
  .auth .auth__brand-overlay {
    display: none;
  }

  .auth .auth__brand-content {
    min-height: auto;
    padding: 28px 22px;
    background: linear-gradient(145deg, #0b1220, #111827);
  }

  .auth .auth__hero,
  .auth .auth__features,
  .auth .auth__location {
    display: none;
  }

  .auth .auth__panel--form {
    min-height: auto;
    padding: 34px 22px 26px;
    border-radius: 0;
  }

  .auth .auth__form-header {
    text-align: left;
  }

  .auth .auth__form-logo {
    display: none;
  }

  .auth .auth__form-title {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  body .auth .auth__brand-content,
  body .auth .auth__panel--form {
    padding-left: 16px;
    padding-right: 16px;
  }

  body .auth .auth__brand-name {
    font-size: 22px;
  }

  body .auth .auth__actions-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  body .auth .auth__link {
    white-space: normal;
  }
}
