/* ===== Global Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* ===== Page Background ===== */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f43f5e, #ec4899, #3b82f6);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  padding: 32px 8px;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== Auth Box ===== */
.auth-box {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  animation: fadeIn 0.8s ease-in-out;
  width: 100%;
  max-width: 380px;
  padding: 36px 28px 28px 28px;
  position: relative;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Logo/Title ===== */
.auth-logo {
  display: block;
  margin: 0 auto 18px auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f43f5e, #3b82f6);
  box-shadow: 0 2px 8px rgba(59,130,246,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  font-weight: bold;
  letter-spacing: 2px;
}

/* ===== Tabs ===== */
.tab-btn {
  flex: 1;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  border: none;
  background: #f3f4f6;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  margin: 0 2px;
  transition: all 0.3s ease;
  outline: none;
}

.tab-btn.active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37,99,235,0.18);
}

.tab-btn:hover:not(.active) {
  background: #e5e7eb;
}

/* ===== Divider ===== */
.form-divider {
  width: 100%;
  height: 1px;
  background: #e5e7eb;
  margin: 18px 0;
  border-radius: 2px;
}

/* ===== Form Titles ===== */
.form-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: #111827;
}

/* ===== Labels ===== */
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #374151;
  font-size: 15px;
}

/* ===== Inputs ===== */
.form-input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s;
  font-size: 15px;
  background: #f9fafb;
}

.form-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.13);
}

/* ===== Buttons ===== */
.btn-red, .btn-blue {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 4px;
}

.btn-red {
  background: linear-gradient(90deg, #ef4444 60%, #f43f5e 100%);
  color: #fff;
}

.btn-red:hover {
  background: #dc2626;
  box-shadow: 0 4px 15px rgba(239,68,68,0.18);
}

.btn-blue {
  background: linear-gradient(90deg, #2563eb 60%, #3b82f6 100%);
  color: #fff;
}

.btn-blue:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 15px rgba(37,99,235,0.18);
}

/* ===== Error Text ===== */
.error-text {
  color: #dc2626;
  background: #fee2e2;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 15px;
  text-align: center;
  border: 1px solid #fecaca;
}

/* ===== Hide/Show Sections ===== */
.form-section.hidden {
  display: none;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .auth-box {
    padding: 22px 8px 18px 8px;
    max-width: 98vw;
  }
  .form-title {
    font-size: 20px;
  }
  .auth-logo {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
}
