/* =========================================
   1. GATE MODAL (LOGIN/REGISTER FORMS)
   ========================================= */
.gate-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.gate-col {
  padding: 20px;
  border-radius: 15px;
  text-align: center;
}
.gate-login {
  background: #f0f7ff;
  border: 1px solid #cce5ff;
}
.gate-register {
  background: #fff8f8;
  border: 1px solid #ffe6e6;
}
.gate-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-dark);
}
.or-divider {
  position: relative;
  text-align: center;
  margin: 20px 0;
}
.or-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: #ddd;
}
.or-divider span {
  position: relative;
  background: #fff8f8;
  padding: 0 10px;
  color: #888;
  font-size: 0.8rem;
}

/* =========================================
   2. ORPHANED MODALS (CỨU CÁNH: KHÔNG ĐƯỢC XÓA)
   Các class này KHÔNG tồn tại trong base.css
   ========================================= */
.detail-modal-overlay {
  z-index: var(--z-modal-top);
  align-items: flex-start;
  overflow-y: auto;
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.close-detail {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 35px;
  cursor: pointer;
  z-index: 10;
  opacity: 0.9;
  transition: 0.3s;
  color: white;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.exit-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: var(--z-modal-high);
}
