/* ==============================
   AUTH MODAL BASE
================================ */
.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Show modal */
.auth-modal.show {
  display: flex;
}

/* ==============================
   MODAL CONTENT
================================ */
.auth-modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  padding: 28px 30px;
  border-radius: 10px;
  position: relative;
  animation: modalFade 0.3s ease;
}

/* Close button */
.close-modal {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 26px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  transition: 0.2s;
}

.close-modal:hover {
  color: #e63946;
}

/* ==============================
   FORMS
================================ */
.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-form h2 {
  margin-bottom: 6px;
  font-size: 24px;
  color: #1d3557;
}

.auth-form p {
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
}

/* Labels */
.auth-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 12px 0 6px;
}

/* Inputs */
.auth-form input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  transition: 0.2s;
}

.auth-form input:focus {
  outline: none;
  border-color: #e63946;
}

/* ==============================
   BUTTON
================================ */
.auth-form .btn {
  width: 100%;
  margin-top: 18px;
  padding: 12px;
  background: #e63946;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.auth-form .btn:hover {
  background: #1d3557;
}

/* ==============================
   SWITCH TEXT
================================ */
.switch-text {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
}

.switch-text span {
  color: #e63946;
  cursor: pointer;
  font-weight: 600;
}

.switch-text span:hover {
  text-decoration: underline;
}

/* ==============================
   CHECKBOX
================================ */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
}

.checkbox input {
  margin-top: 4px;
}

.checkbox label {
  font-size: 12.5px;
  color: #555;
  line-height: 1.4;
}

/* ==============================
   ANIMATION
================================ */
@keyframes modalFade {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==============================
   MOBILE
================================ */
@media (max-width: 480px) {
  .auth-modal-content {
    padding: 22px;
  }

  .auth-form h2 {
    font-size: 22px;
  }
}
