/* --- AUTHENTICATION MODAL (GLASSMORPHISM) --- */

.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.auth-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.auth-modal {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.auth-modal-overlay.active .auth-modal {
  transform: translateY(0);
}

/* Close Button */
.auth-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.auth-close:hover {
  opacity: 1;
}

/* Tabs */
.auth-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
}

.auth-tab {
  background: none;
  border: none;
  color: #888;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 0;
  position: relative;
  transition: color 0.2s;
  font-family: 'Inter', sans-serif;
}

.auth-tab.active {
  color: #fff;
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #3377ff;
  border-radius: 2px;
}

/* Forms */
.auth-form {
  display: none;
  flex-direction: column;
  gap: 15px;
}

.auth-form.active {
  display: flex;
}

.auth-input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 16px;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.auth-input:focus {
  border-color: #3377ff;
}

.auth-btn {
  background: #3377ff;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
}

.auth-btn:hover {
  background: #255ecc;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #666;
  font-size: 12px;
  margin: 25px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.auth-divider span {
  padding: 0 10px;
}

/* Google Wrapper */
.google-btn-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.auth-error {
  color: #ff4444;
  font-size: 13px;
  text-align: center;
  margin-top: 10px;
  display: none;
}

/* ═══════════════════════════════════════════════════════════════
   LIGHT MODE — Auth Modal (Login/Register)
   ═══════════════════════════════════════════════════════════════ */
body.theme-light .auth-modal-overlay {
  background: rgba(0, 0, 0, 0.3);
}

body.theme-light .auth-modal {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body.theme-light .auth-close {
  color: rgba(0, 0, 0, 0.4);
}

body.theme-light .auth-close:hover {
  color: #333;
  opacity: 1;
}

body.theme-light .auth-tabs {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.theme-light .auth-tab {
  color: #999;
}

body.theme-light .auth-tab.active {
  color: #1a1a2e;
}

body.theme-light .auth-tab.active::after {
  background: #1a56db;
}

body.theme-light .auth-input {
  background: #F5F5F5;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #333;
}

body.theme-light .auth-input::placeholder {
  color: #aaa;
}

body.theme-light .auth-input:focus {
  border-color: #1a56db;
  background: #FFFFFF;
}

body.theme-light .auth-btn {
  background: #1a56db;
}

body.theme-light .auth-btn:hover {
  background: #1e40af;
}

body.theme-light .auth-divider {
  color: #aaa;
}

body.theme-light .auth-divider::before,
body.theme-light .auth-divider::after {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
