/* Ensure only one auth form is visible at a time */
.auth-form { display: none !important; }
.auth-form.active { display: block !important; }
/* =========================
   AUTH PAGES (LOGIN / REGISTER)
   Multimedia Ads
========================= */

* {
  box-sizing: border-box;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #00c897, #0b1c2d);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* MAIN CONTAINER */
.auth-container {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  padding: 40px 35px;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* TITLE */
.auth-container h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #0b1c2d;
  font-size: 1.7rem;
}

/* FORM */
.auth-container form {
  display: flex;
  flex-direction: column;
}

/* INPUTS */
.auth-container input,
.auth-container select {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.auth-container input:focus,
.auth-container select:focus {
  border-color: #00c897;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 200, 151, 0.2);
}

/* BUTTON */
.auth-container button {
  background: #00c897;
  color: #ffffff;
  padding: 14px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 5px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.auth-container button:hover {
  background: #00b386;
  transform: translateY(-1px);
}

/* LINKS */
.auth-link {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #555;
}

.auth-link a {
  color: #00c897;
  font-weight: 500;
  text-decoration: none;
}

.auth-link a:hover {
  text-decoration: underline;
}

/* FORM NOTE / ERROR / SUCCESS */
.form-note {
  font-size: 0.8rem;
  text-align: center;
  margin-top: 12px;
  color: #666;
}

.auth-error {
  background: #ffe5e5;
  color: #b30000;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  text-align: center;
}

.auth-success {
  background: #e6fff6;
  color: #007a5a;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  text-align: center;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 480px) {
  .auth-container {
    padding: 30px 22px;
  }

  .auth-container h2 {
    font-size: 1.5rem;
  }
}
