/* Auth Modal System Styles */

.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.auth-modal.active {
  opacity: 1;
}

.auth-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  cursor: pointer;
}

.auth-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 450px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  z-index: 1;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.auth-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  padding: 5px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal-close:hover {
  color: #333;
}

.auth-modal h2 {
  margin: 0 0 30px 0;
  color: #333;
  text-align: center;
  font-size: 1.75rem;
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: 500;
  font-size: 0.95rem;
}

.auth-form input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
  font-family: inherit;
}

.auth-form input:focus {
  outline: none;
  border-color: #667eea;
}

.auth-form small {
  display: block;
  margin-top: 5px;
  font-size: 0.85rem;
}

.auth-submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.auth-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error-message {
  background: #fee;
  color: #c33;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  border: 1px solid #fcc;
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  color: #666;
  font-size: 0.95rem;
}

.auth-switch a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* Success Notification */
.auth-success-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(72, 187, 120, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10001;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  font-weight: 500;
}

.auth-success-notification.active {
  opacity: 1;
  transform: translateX(0);
}

.auth-success-notification i {
  font-size: 1.25rem;
}

/* Mobile Optimierung */
@media (max-width: 768px) {
  .auth-modal-content {
    padding: 30px 20px;
    max-width: 95%;
    border-radius: 12px;
  }
  
  .auth-modal h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }
  
  .auth-form input {
    padding: 10px 14px;
  }
  
  .auth-submit-btn {
    padding: 12px;
  }
  
  .auth-success-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
  }
}

  .deleteAccountForm { 
    background-color: #ffffff !important;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
    max-width: 600px;
    width: 100%;
    margin: 2rem auto;
    box-sizing: border-box;
    display: block;
  }

  .changePasswordForm { 
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px) !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    border: 0px solid #ccc !important;
  }

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    form{
    background-color: #1a202c;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
    max-width: 600px;
    width: 100%;
    margin: 2rem auto;
    box-sizing: border-box;
    display: block;
   } 

  .auth-modal-content {
    background: #1a202c;
    color: #e2e8f0;
  }
  
  .auth-modal h2 {
    color: #e2e8f0;
  }
  
  .auth-form label {
    color: #cbd5e0;
  }
  
  .auth-form input {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
  }
  
  .auth-form input:focus {
    border-color: #667eea;
  }
  
  .auth-modal-close {
    color: #a0aec0;
  }
  
  .auth-modal-close:hover {
    color: #e2e8f0;
  }
  
  .auth-switch {
    color: #a0aec0;
  }
}

/* Passwort-Auge-Icon */
.password-toggle-wrapper {
  position: relative;
}
.password-toggle-input {
  padding-right: 44px !important;
}
.password-toggle-btn {
  position: absolute;
  top: 13%;
  right: 8px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  color: #888;
  font-size: 1.25em;
  z-index: 10;
  height: 32px;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.password-toggle-btn:hover {
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, #003d82 100%) !important;
  box-shadow: var(--shadow-lg) !important;
  transform: translateX(+0px) !important;
}
.password-toggle-btn:active {
  color: #333;
}
.password-toggle-btn:focus {
  outline: 2px solid #667eea;
}
