.auth-page-body {
  background-color: var(--neutral);
  min-height: 100vh;
  overflow-x: hidden;
}

.auth-split-container {
  display: flex;
  width: 100vw;
  min-height: 100vh;
}

.auth-splash-panel {
  flex: 1;
  background-color: var(--primary);
  background-image: url("../assets/auth_bg.png");
  background-position: center;
  background-size: cover;
}

.auth-form-panel {
  width: 550px;
  background-color: var(--neutral);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow-y: auto;
}

.auth-form-wrapper {
  width: 100%;
  max-width: 400px;
}

.auth-brand-header {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 48px;
}

/* Tabs */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 32px;
}
.auth-tab {
  background: none;
  border: none;
  padding: 10px 0;
  margin-right: 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}
.auth-tab:hover {
  color: var(--primary);
}
.auth-tab.active {
  color: var(--primary);
  font-weight: 600;
}
.auth-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
}

.auth-main-title {
  font-size: 2rem;
  margin-bottom: 12px;
}
.auth-sub-title {
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Form */
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 8px;
  color: var(--secondary);
}
.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background-color: var(--white);
  font-size: 1rem;
  color: var(--text-main);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(27, 48, 34, 0.1);
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.form-link-sm {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.form-link-sm:hover {
  text-decoration: underline;
  color: var(--primary);
}

.auth-divider {
  text-align: center;
  position: relative;
  margin: 24px 0;
}
.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  right: 0;
  height: 1px;
  background-color: var(--border-light);
  z-index: 1;
}
.auth-divider span {
  background-color: var(--neutral);
  padding: 0 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

.auth-alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  border: 1px solid transparent;
  font-weight: 500;
}

.auth-footer-links {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 60px;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}
.footer-right-links a {
  margin-left: 16px;
}
.footer-right-links a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .auth-splash-panel {
    display: none;
  }
  .auth-form-panel {
    width: 100%;
    padding: 32px 40px;
  }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 768px) {
  .auth-page-body {
    overflow-y: auto;
  }

  .auth-split-container {
    min-height: 100vh;
    height: auto;
  }

  .auth-form-panel {
    width: 100%;
    padding: 32px 20px;
    align-items: flex-start;
    padding-top: 48px;
  }

  .auth-brand-header {
    margin-bottom: 32px;
  }

  .auth-main-title {
    font-size: 1.6rem;
  }

  .auth-footer-links {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
  }
  .footer-right-links a {
    margin-left: 8px;
  }
}
