/* ============================================
   QUEST4COUPLE - AUTH PAGE STYLES
   ============================================ */

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-container {
  width: 100%;
  max-width: 450px;
  padding: 20px;
}

.auth-box {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 40px;
  animation: slideUp 0.5s ease;
}

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

/* Logo */
.auth-logo {
  text-align: center;
  margin-bottom: 30px;
}

.auth-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

.auth-logo h1 {
  margin: 0;
  font-size: 28px;
  color: #333;
  font-weight: 700;
}

.tagline {
  color: #666;
  margin: 10px 0 0 0;
  font-size: 16px;
}

/* Tabs */
.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: 2px solid #f0f0f0;
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #999;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.auth-tab.active {
  color: #667eea;
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #667eea;
}

.auth-tab:hover {
  color: #667eea;
}

/* Forms */
.auth-form {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.auth-form h2 {
  margin: 0 0 20px 0;
  font-size: 24px;
  color: #333;
  text-align: center;
}

/* Social Buttons Container */
.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

/* Google Button */
.btn-google {
  width: 100%;
  padding: 14px;
  border: 2px solid #ddd;
  background: white;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-google:hover {
  border-color: #667eea;
  background: #f8f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* Reddit Button */
.btn-reddit {
  width: 100%;
  padding: 14px;
  border: 2px solid #FF4500;
  background: white;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #FF4500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-reddit:hover {
  border-color: #FF4500;
  background: #fff5f3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.2);
}

.btn-reddit:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(255, 69, 0, 0.15);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: #999;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #ddd;
}

.divider span {
  padding: 0 15px;
  font-size: 14px;
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
  color: #bbb;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Forgot Password */
.forgot-password {
  text-align: right;
  margin-top: 10px;
}

.forgot-password a {
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* Reset Password Form */
.reset-password-form {
  display: none;
  background: #f8f9ff;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
}

.reset-password-form.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.reset-password-form h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #333;
}

.reset-password-form p {
  margin: 0 0 15px 0;
  color: #666;
  font-size: 14px;
}

.btn-cancel {
  background: #e0e0e0;
  color: #666;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 10px;
}

.btn-cancel:hover {
  background: #d0d0d0;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-overlay.active {
  display: flex;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Messages */
.message {
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  display: none;
  animation: fadeIn 0.3s ease;
}

.message.active {
  display: block;
}

.message.error {
  background: #fee;
  color: #c33;
  border: 1px solid #fcc;
}

.message.success {
  background: #efe;
  color: #3c3;
  border: 1px solid #cfc;
}

.message.info {
  background: #eef;
  color: #33c;
  border: 1px solid #ccf;
}

/* Responsive */
@media (max-width: 600px) {
  .auth-box {
    padding: 30px 25px;
  }

  .auth-logo h1 {
    font-size: 24px;
  }

  .auth-form h2 {
    font-size: 20px;
  }

  .form-group input {
    padding: 10px 12px;
  }

  .btn-submit,
  .btn-google {
    padding: 12px;
  }
}

/* ============================================
   LOCATION MODAL
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.modal-overlay.hidden {
  display: none;
}

.modal-box {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.3s ease;
}

.modal-box h2 {
  color: #667eea;
  font-size: 1.8em;
  margin-bottom: 10px;
  text-align: center;
}

.modal-box p {
  color: #6c757d;
  text-align: center;
  margin-bottom: 25px;
}

.modal-box .form-group {
  margin-bottom: 20px;
}

.modal-box .btn-primary {
  width: 100%;
  margin-top: 10px;
}
