/* auth.css - Styling für das Authentifizierungs-System */

/* Auth Modal Styles */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.auth-modal-content {
  background: white;
  padding: 40px;
  border-radius: 20px;
  width: 400px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-form {
  text-align: center;
}

.auth-form h3 {
  color: #00A0FF;
  font-size: 2rem;
  margin-bottom: 30px;
  font-family: sans-serif;
  font-weight: 600;
}

.auth-form input[type="email"],
.auth-form input[type="text"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: all 0.3s ease;
  font-family: sans-serif;
}

.auth-form input:focus {
  outline: none;
  border-color: #00A0FF;
  box-shadow: 0 0 0 3px rgba(0, 162, 255, 0.1);
}

.auth-form button {
  width: 100%;
  margin-top: 20px;
  padding: 15px;
  background: linear-gradient(135deg, #00A0FF, #0078FF, #0050FF);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: sans-serif;
}

.auth-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 162, 255, 0.3);
}

.auth-form button:active {
  transform: translateY(0);
}

/* Toggle Switch Styles */
.toggle-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  justify-content: center;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0 !important;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #00A0FF;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.toggle-container label {
  font-size: 1rem;
  color: #475569;
  font-family: sans-serif;
}

.switch-form-link {
  color: #00A0FF;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 15px;
  font-family: sans-serif;
  transition: color 0.3s ease;
}

.switch-form-link:hover {
  color: #0078FF;
}

/* Profile Modal Styles */
.profile-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.profile-modal-content {
  background: white;
  border-radius: 20px;
  width: 450px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
  overflow: hidden;
}

.profile-header {
  background: linear-gradient(135deg, #00A0FF, #0078FF);
  color: white;
  padding: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-header h3 {
  font-size: 1.5rem;
  margin: 0;
  font-family: sans-serif;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.close-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.profile-body {
  padding: 30px;
}

.profile-info {
  margin-bottom: 30px;
}

.profile-info p {
  margin: 12px 0;
  font-size: 1rem;
  color: #475569;
  font-family: sans-serif;
}

.profile-settings {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
}

.setting-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.setting-item label {
  font-size: 1rem;
  color: #475569;
  font-family: sans-serif;
}

.profile-actions {
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.profile-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: sans-serif;
}

.profile-btn.secondary {
  background: #e2e8f0;
  color: #475569;
}

.profile-btn.secondary:hover {
  background: #cbd5e1;
  transform: translateY(-1px);
}

.profile-btn.danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.profile-btn.danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

/* Notification Styles */
.auth-notification {
  position: fixed;
  top: 30px;
  right: 30px;
  padding: 15px 25px;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  z-index: 10000;
  max-width: 400px;
  font-family: sans-serif;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  animation: notificationSlideIn 0.3s ease-out;
}

@keyframes notificationSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.auth-notification.success {
  background: linear-gradient(135deg, #10b981, #059669);
}

.auth-notification.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.auth-notification.info {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Dark Mode Styles */
body.dark-mode .auth-modal-content,
body.dark-mode .profile-modal-content {
  background: #2a2a2a;
  color: #ffffff;
}

body.dark-mode .auth-form h3 {
  color: #00A0FF;
}

body.dark-mode .auth-form input[type="email"],
body.dark-mode .auth-form input[type="text"],
body.dark-mode .auth-form input[type="password"] {
  background: #444;
  color: #fff;
  border: 2px solid #555;
}

body.dark-mode .auth-form input:focus {
  border-color: #00A0FF;
}

body.dark-mode .toggle-container label,
body.dark-mode .switch-form-link {
  color: #e2e8f0;
}

body.dark-mode .switch-form-link:hover {
  color: #00A0FF;
}

body.dark-mode .profile-info p {
  color: #e2e8f0;
}

body.dark-mode .profile-settings {
  background: #333;
}

body.dark-mode .setting-item label {
  color: #e2e8f0;
}

body.dark-mode .profile-btn.secondary {
  background: #444;
  color: #e2e8f0;
}

body.dark-mode .profile-btn.secondary:hover {
  background: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
  .auth-modal-content,
  .profile-modal-content {
    width: 95vw;
    margin: 20px;
  }
  
  .auth-modal-content {
    padding: 30px 25px;
  }
  
  .profile-body {
    padding: 25px;
  }
  
  .auth-notification {
    top: 20px;
    right: 20px;
    max-width: calc(100vw - 40px);
  }
  
  .profile-actions {
    gap: 10px;
  }
}