/* ============================================
   QUEST4YOU - AUTH PAGE STYLES
   Cores baseadas no logo: Vermelho, Rosa, Amarelo, Verde
   ============================================ */

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: 
    radial-gradient(circle at 15% 25%, rgba(229, 57, 53, 0.35) 0%, transparent 35%),
    radial-gradient(circle at 85% 75%, rgba(194, 24, 91, 0.30) 0%, transparent 35%),
    radial-gradient(circle at 50% 10%, rgba(253, 216, 53, 0.20) 0%, transparent 35%),
    radial-gradient(circle at 20% 70%, rgba(76, 175, 80, 0.15) 0%, transparent 30%),
    repeating-linear-gradient(45deg, transparent, transparent 15px, rgba(255, 255, 255, 0.08) 15px, rgba(255, 255, 255, 0.08) 17px),
    linear-gradient(135deg, #e53935 0%, #c2185b 100%);
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

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

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

.auth-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e53935, #ff9800, #fdd835, #4caf50);
}

@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: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
  transition: transform 0.3s ease;
}

.auth-logo img:hover {
  transform: scale(1.05);
}

.auth-logo h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #e53935, #c2185b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.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;
  font-family: inherit;
}

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

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e53935, #c2185b);
  border-radius: 3px 3px 0 0;
}

.auth-tab:hover {
  color: #e53935;
}

/* 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 15px 0;
  font-size: 22px;
  color: #333;
  text-align: center;
}

.reset-info {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

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

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

.btn-google:hover {
  border-color: #e53935;
  background: #fafafa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-google svg {
  flex-shrink: 0;
}

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

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

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

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #444;
  font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

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

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #e53935;
}

.checkbox-group label {
  margin-bottom: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.checkbox-group a {
  color: #e53935;
  text-decoration: none;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #e53935, #c2185b);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-submit:hover::before {
  width: 300px;
  height: 300px;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #f44336, #e91e63);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
}

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

.btn-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Auth Footer */
.auth-footer {
  text-align: center;
  margin-top: 20px;
}

.auth-footer a {
  color: #e53935;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

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

/* Messages */
.auth-message {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
  display: none;
  animation: fadeIn 0.3s ease;
}

.auth-message.success {
  display: block;
  background: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.auth-message.error {
  display: block;
  background: rgba(244, 67, 54, 0.1);
  color: #c62828;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.auth-message.info {
  display: block;
  background: rgba(33, 150, 243, 0.1);
  color: #1565c0;
  border: 1px solid rgba(33, 150, 243, 0.3);
}

/* Back Home */
.back-home {
  text-align: center;
  margin-top: 20px;
}

.back-home a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.back-home a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Loading State */
.loading {
  pointer-events: none;
  opacity: 0.7;
}

.loading .btn-submit::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
}

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

/* Responsive */
@media (max-width: 480px) {
  .auth-box {
    padding: 30px 25px;
  }
  
  .auth-logo img {
    width: 70px;
    height: 70px;
  }
  
  .auth-logo h1 {
    font-size: 24px;
  }
  
  .form-group input {
    padding: 12px 14px;
  }
  
  .btn-submit {
    padding: 14px;
  }
}
