/* Auth Dialog Styles */
dialog {
  border: none;
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  max-width: 90vw;
  width: 450px;
  padding: 0;
  background: white;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.auth-dialog {
  padding: 32px;
  position: relative;
}

.close-dialog {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-dialog:hover {
  background: #f0f0f0;
  color: var(--ink);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px 0;
}

.auth-header p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.auth-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #6fa24a 0%, #8bc34a 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.auth-email {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.form-group input {
  padding: 14px 16px;
  border: 2px solid #e8e3d5;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #6fa24a;
  box-shadow: 0 0 0 4px rgba(107, 162, 74, 0.1);
}

.form-group input:disabled {
  background: #f5f5f5;
  color: var(--muted);
}

.auth-btn {
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-btn.primary {
  background: linear-gradient(135deg, #6fa24a 0%, #8bc34a 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(107, 162, 74, 0.3);
}

.auth-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 162, 74, 0.4);
}

.auth-btn.secondary {
  background: #f5f5f5;
  color: var(--ink);
}

.auth-btn.secondary:hover {
  background: #e8e8e8;
}

.auth-btn.danger {
  background: #fee;
  color: #c33;
}

.auth-btn.danger:hover {
  background: #fdd;
}

.auth-btn.google {
  background: white;
  color: var(--ink);
  border: 2px solid #e8e3d5;
}

.auth-btn.google:hover {
  background: #f8f8f8;
  border-color: #d0c8b8;
}

.google-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #4285f4 0%, #34a853 25%, #fbbc05 50%, #ea4335 75%, #4285f4 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0;
}

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

.auth-divider span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.auth-links a {
  font-size: 14px;
  color: #6fa24a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.auth-links a:hover {
  color: #5a8a3d;
  text-decoration: underline;
}

.auth-content {
  margin-top: 24px;
}

.auth-info {
  background: #f8f9f5;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.auth-info p {
  margin: 8px 0;
  font-size: 14px;
  color: var(--ink);
}

.auth-info strong {
  color: var(--muted);
  font-weight: 500;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.3s ease;
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification-success {
  background: linear-gradient(135deg, #6fa24a 0%, #8bc34a 100%);
  color: white;
}

.notification-error {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
}

.notification-info {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
}

/* Profile Button Styles */
.profile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6fa24a 0%, #8bc34a 100%);
  color: white;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.profile:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(107, 162, 74, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  dialog {
    width: 90vw;
    max-width: 400px;
  }
  
  .auth-dialog {
    padding: 24px;
  }
  
  .auth-header h2 {
    font-size: 20px;
  }
  
  .auth-links {
    flex-direction: column;
    align-items: center;
  }
}

/* Loading State */
.auth-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.auth-btn.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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