/* ==============================================================
   AUTH PAGE – PURE CSS (NO TAILWIND)
   ============================================================== */

.auth-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  position: relative;
}
.auth-main::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" opacity="0.05"><path fill="none" stroke="%2310b981" stroke-width="2" d="M20 30h20v20H20zM60 30h20v20H60zM40 60h20v20H40z"/></svg>');
  background-repeat: repeat;
  z-index: -1;
}
.dark .auth-main { background: #0f172a; }
.dark .auth-main::before { opacity: 0.1; filter: brightness(0.5); }

.auth-section {
  padding: 3rem 0;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.auth-container {
  width: 100%;
  max-width: 28rem;
}

/* Toggle Tabs */
.toggle-tabs {
  display: flex;
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.dark .toggle-tabs { box-shadow: 0 1px 3px rgba(0,0,0,.3); }

.tab-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .3s ease;
}
.tab-btn:first-child { border-radius: 0.5rem 0 0 0.5rem; }
.tab-btn:last-child { border-radius: 0 0.5rem 0.5rem 0; }

.tab-btn:not(.active) {
  background: #e5e7eb;
  color: #4b5563;
}
.tab-btn:not(.active):hover {
  background: #d1d5db;
}
.dark .tab-btn:not(.active) { background: #334155; color: #94a3b8; }
.dark .tab-btn:not(.active):hover { background: #475569; }

.tab-btn.active {
  background: #16a34a;
  color: #fff;
}
.tab-btn.active:hover { background: #059669; }

/* Form Card */
.form-wrapper { transition: opacity .3s ease; }
.form-card {
  background: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,.1);
}
.dark .form-card { background: #1e293b; box-shadow: 0 4px 6px rgba(0,0,0,.3); }

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: #16a34a;
  margin-bottom: 1.5rem;
}
.dark .form-title { color: #86efac; }

/* Form Groups */
.form-group {
  margin-bottom: 1rem;
}
.input-label {
  display: block;
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 0.5rem;
}
.dark .input-label { color: #94a3b8; }

.input-field {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.dark .input-field {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}
.input-field:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Form Footer */
.form-footer {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}
.forgot-link {
  color: #16a34a;
  font-size: 0.875rem;
  text-decoration: none;
}
.forgot-link:hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s;
}
.btn-primary {
  background: #16a34a;
  color: #fff;
}
.btn-primary:hover { background: #059669; }
.btn-block { margin-bottom: 1rem; }

/* Divider */
.divider-text {
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
  margin: 1rem 0;
}
.dark .divider-text { color: #94a3b8; }

/* Social Buttons */
.social-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: #f3f4f6;
  border-radius: 50%;
  transition: background .2s;
}
.social-btn:hover { background: #e5e7eb; }
.dark .social-btn { background: #334155; }
.dark .social-btn:hover { background: #475569; }

.social-icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Hidden */
.hidden { display: none; }

/* Dark Mode */
html.dark .auth-section { background: transparent; }

/* ==============================================================
   PASSWORD RESET PAGES – SHARED STYLES
   ============================================================== */

/* Reuse form-card, form-title, input-field, btn-primary, etc. from login/signup */
.text-red-600 { color: #dc2626; }
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }

.link {
  color: #16a34a;
  text-decoration: none;
  font-weight: 500;
}
.link:hover { text-decoration: underline; }

/* Dark Mode */
.dark .text-red-600 { color: #f87171; }