* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  min-height: 100vh;
  color: #1d1d1f;
  margin: 0;
  position: relative;
  overflow-x: hidden;
}

/* Стили для страниц авторизации */
body.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

/* Стили для дашборда */
body.dashboard-page {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* WebGL Canvas Background */
#liquidGlassCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Liquid Glass контейнер */
.glass-container {
  background: rgba(255, 255, 255, 0.8);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 48px;
  width: 100%;
  max-width: 420px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* Фиксированное позиционирование для предотвращения сдвигов при зуме */
  transform: translateZ(0);
  will-change: transform;
  
  /* Основной Liquid Glass эффект */
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  
  /* Внешние блики */
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.6) inset,
    0 0.5px 0 rgba(255, 255, 255, 0.8) inset,
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.05),
    0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Вкладки авторизации */
.auth-tabs {
  display: flex;
  margin-bottom: 32px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 4px;
  position: relative;
  z-index: 1;
}

.tab-button {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #86868b;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.tab-button.active {
  background: rgba(255, 255, 255, 0.8);
  color: #1d1d1f;
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.4) inset,
    0 0.5px 0 rgba(255, 255, 255, 0.6) inset,
    0 1px 2px rgba(0, 0, 0, 0.05);
}

.tab-button:hover:not(.active) {
  background: rgba(255, 255, 255, 0.4);
  color: #1d1d1f;
}

/* Формы авторизации */
.auth-form {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.auth-form.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Отражение света на контейнере */
.glass-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.8) 20%, 
    rgba(255, 255, 255, 0.9) 50%, 
    rgba(255, 255, 255, 0.8) 80%, 
    transparent 100%);
}

/* Преломление света */
.glass-container::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  border-radius: 19px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.1) 100%);
  pointer-events: none;
}

.form-title {
  text-align: center;
  color: #1d1d1f;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.form-subtitle {
  text-align: center;
  color: #86868b;
  font-size: 16px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.form-group {
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.form-label {
  display: block;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: #1d1d1f;
  font-size: 16px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* Внутренние блики */
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.4) inset,
    0 0.5px 0 rgba(255, 255, 255, 0.6) inset,
    0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-input::placeholder {
  color: #86868b;
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 122, 255, 0.4);
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.6) inset,
    0 0.5px 0 rgba(255, 255, 255, 0.8) inset,
    0 0 0 3px rgba(0, 122, 255, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-button {
  width: 100%;
  padding: 16px;
  background: rgba(0, 122, 255, 0.9);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 0.5px solid rgba(0, 122, 255, 0.3);
  border-radius: 12px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  
  /* Блики на кнопке */
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.2) inset,
    0 0.5px 0 rgba(255, 255, 255, 0.3) inset,
    0 2px 4px rgba(0, 122, 255, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.2) 0%, 
    rgba(255, 255, 255, 0.05) 100%);
  border-radius: 12px 12px 0 0;
}

.form-button:hover {
  background: rgba(0, 122, 255, 1);
  transform: translateY(-1px);
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.3) inset,
    0 0.5px 0 rgba(255, 255, 255, 0.4) inset,
    0 4px 8px rgba(0, 122, 255, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-button:active {
  transform: translateY(0);
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.2) inset,
    0 0.5px 0 rgba(255, 255, 255, 0.3) inset,
    0 1px 2px rgba(0, 122, 255, 0.3);
}

.form-button:disabled {
  background: rgba(142, 142, 147, 0.6);
  cursor: not-allowed;
  transform: none;
}

/* Предложения регистрации/входа */
.register-suggestion,
.login-suggestion {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 0.5px solid rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.register-text,
.login-text {
  color: #86868b;
  font-size: 14px;
  margin-bottom: 12px;
  font-weight: 500;
}

.register-link,
.login-link {
  background: transparent;
  border: none;
  color: #007aff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.register-link:hover,
.login-link:hover {
  background: rgba(0, 122, 255, 0.1);
  color: #0051d5;
  transform: translateY(-1px);
}

.register-link:active,
.login-link:active {
  transform: translateY(0);
}

.register-link:focus,
.login-link:focus {
  outline: 2px solid rgba(0, 122, 255, 0.5);
  outline-offset: 2px;
}

.form-link {
  display: block;
  text-align: center;
  color: #007aff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  z-index: 1;
}

.form-link:hover {
  color: #0051d5;
}

.message {
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  position: relative;
  z-index: 1;
}

.message.success {
  background: rgba(52, 199, 89, 0.1);
  border: 0.5px solid rgba(52, 199, 89, 0.2);
  color: #1d4f2f;
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.3) inset,
    0 0.5px 0 rgba(255, 255, 255, 0.4) inset;
}

.message.error {
  background: rgba(255, 59, 48, 0.1);
  border: 0.5px solid rgba(255, 59, 48, 0.2);
  color: #d70015;
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.3) inset,
    0 0.5px 0 rgba(255, 255, 255, 0.4) inset;
}

/* Dashboard стили */
.dashboard {
  text-align: center;
  max-width: 800px;
  width: 100%;
}

.welcome-text {
  color: #1d1d1f;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.welcome-subtitle {
  color: #86868b;
  font-size: 16px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

/* Секция проектов */
.projects-section {
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  text-align: left;
}

.section-header h3 {
  color: #1d1d1f;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.create-project-btn {
  background: rgba(0, 122, 255, 0.9);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 0.5px solid rgba(0, 122, 255, 0.3);
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  gap: 8px;
  
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.2) inset,
    0 0.5px 0 rgba(255, 255, 255, 0.3) inset,
    0 2px 4px rgba(0, 122, 255, 0.3);
}

.create-project-btn:hover {
  background: rgba(0, 122, 255, 1);
  transform: translateY(-1px);
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.3) inset,
    0 0.5px 0 rgba(255, 255, 255, 0.4) inset,
    0 4px 8px rgba(0, 122, 255, 0.4);
}

/* Сетка проектов */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.project-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.4) inset,
    0 0.5px 0 rgba(255, 255, 255, 0.6) inset,
    0 2px 4px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.6) inset,
    0 0.5px 0 rgba(255, 255, 255, 0.8) inset,
    0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(0, 122, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 16px;
  color: #007aff;
}

.project-info {
  text-align: left;
  margin-bottom: 16px;
}

.project-name {
  color: #1d1d1f;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.project-description {
  color: #86868b;
  font-size: 14px;
  margin: 0 0 12px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-date {
  color: #86868b;
  font-size: 12px;
  font-weight: 500;
}

.project-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.project-card:hover .project-actions {
  opacity: 1;
}

.project-action-btn {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #86868b;
  
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.4) inset,
    0 0.5px 0 rgba(255, 255, 255, 0.6) inset,
    0 1px 2px rgba(0, 0, 0, 0.05);
}

.project-action-btn:hover {
  background: rgba(255, 255, 255, 1);
  color: #1d1d1f;
  transform: translateY(-1px);
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.6) inset,
    0 0.5px 0 rgba(255, 255, 255, 0.8) inset,
    0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-action-btn.delete-project:hover {
  color: #ff3b30;
}

/* Пустое состояние */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #86868b;
}

.empty-icon {
  margin-bottom: 24px;
  opacity: 0.6;
}

.empty-state h4 {
  color: #1d1d1f;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.empty-state p {
  font-size: 14px;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.create-first-project {
  background: rgba(0, 122, 255, 0.9);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 0.5px solid rgba(0, 122, 255, 0.3);
  color: #ffffff;
  padding: 12px 24px;
  margin: 0;
  width: auto;
}

/* Модальное окно */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow: hidden;
  
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.6) inset,
    0 0.5px 0 rgba(255, 255, 255, 0.8) inset,
    0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal-header {
  padding: 24px 24px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: #1d1d1f;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #86868b;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #1d1d1f;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 0 24px 24px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.cancel-button {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.3);
  color: #1d1d1f;
  width: auto;
  margin: 0;
  
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.4) inset,
    0 0.5px 0 rgba(255, 255, 255, 0.6) inset,
    0 1px 2px rgba(0, 0, 0, 0.05);
}

.cancel-button:hover {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.6) inset,
    0 0.5px 0 rgba(255, 255, 255, 0.8) inset,
    0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-info {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  text-align: left;
  position: relative;
  z-index: 1;
  
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.4) inset,
    0 0.5px 0 rgba(255, 255, 255, 0.6) inset,
    0 1px 2px rgba(0, 0, 0, 0.05);
}

.user-info h3 {
  color: #1d1d1f;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.user-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
}

.user-info-item:last-child {
  border-bottom: none;
}

.user-info-label {
  color: #86868b;
  font-size: 14px;
  font-weight: 500;
}

.user-info-value {
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 600;
}

.logout-button {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.3);
  color: #1d1d1f;
  
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.4) inset,
    0 0.5px 0 rgba(255, 255, 255, 0.6) inset,
    0 1px 2px rgba(0, 0, 0, 0.05);
}

.logout-button:hover {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.6) inset,
    0 0.5px 0 rgba(255, 255, 255, 0.8) inset,
    0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dashboard Actions */
.dashboard-actions {
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.editor-button {
  background: rgba(0, 122, 255, 0.9);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 0.5px solid rgba(0, 122, 255, 0.3);
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.2) inset,
    0 0.5px 0 rgba(255, 255, 255, 0.3) inset,
    0 2px 4px rgba(0, 122, 255, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.1);
}

.editor-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.2) 0%, 
    rgba(255, 255, 255, 0.05) 100%);
  border-radius: 12px 12px 0 0;
}

.editor-button:hover {
  background: rgba(0, 122, 255, 1);
  transform: translateY(-1px);
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.3) inset,
    0 0.5px 0 rgba(255, 255, 255, 0.4) inset,
    0 4px 8px rgba(0, 122, 255, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.1);
}

.editor-button:active {
  transform: translateY(0);
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.2) inset,
    0 0.5px 0 rgba(255, 255, 255, 0.3) inset,
    0 1px 2px rgba(0, 122, 255, 0.3);
}

/* Дополнительные элементы */
.divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  position: relative;
  z-index: 1;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: rgba(0, 0, 0, 0.1);
}

.divider span {
  padding: 0 16px;
  color: #86868b;
  font-size: 14px;
}

/* Адаптивность */
@media (max-width: 480px) {
  body.auth-page {
    padding: 16px;
  }
  
  .glass-container {
    padding: 32px 24px;
    /* Улучшенная стабильность на мобильных устройствах */
    transform: translate3d(0, 0, 0);
  }
  
  .form-title {
    font-size: 28px;
  }
  
  .form-input,
  .form-button {
    padding: 14px;
  }
  
  .register-suggestion,
  .login-suggestion {
    margin-top: 20px;
    padding-top: 20px;
  }
}

/* Дополнительные стили для стабильности при зуме */
@media screen and (min-resolution: 2dppx) {
  .glass-container {
    transform: translate3d(0, 0, 0);
  }
}

/* Предотвращение сдвигов при изменении масштаба */
.glass-container * {
  transform: translateZ(0);
}

/* Скрытие элементов */
.hidden {
  display: none;
}

/* Анимации загрузки */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Улучшенная типографика */
.form-input {
  line-height: 1.5;
}

.form-button {
  line-height: 1.5;
  letter-spacing: 0.025em;
}

/* Фокус для доступности */
.form-input:focus,
.form-button:focus,
.form-link:focus {
  outline: 2px solid rgba(0, 122, 255, 0.5);
  outline-offset: 2px;
}

/* Минималистичная шапка дашборда */
.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
  padding: 16px 0;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-title {
  font-size: 24px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0;
  letter-spacing: -0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-email {
  color: #86868b;
  font-size: 14px;
  font-weight: 500;
}

.logout-btn {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.4) inset,
    0 0.5px 0 rgba(255, 255, 255, 0.6) inset,
    0 1px 2px rgba(0, 0, 0, 0.05);
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.6) inset,
    0 0.5px 0 rgba(255, 255, 255, 0.8) inset,
    0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Основной контент дашборда */
.dashboard-main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  width: 100%;
}

/* Обновленные стили для секции проектов */
.projects-section {
  margin-bottom: 0;
}

.section-header {
  margin-bottom: 32px;
}

.section-header h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Обновленная сетка проектов */
.projects-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 0;
}

/* Обновленные карточки проектов */
.project-card {
  padding: 24px;
  border-radius: 16px;
}

.project-preview {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.project-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-description {
  font-size: 15px;
  margin-bottom: 16px;
}

/* Адаптивность для дашборда */
@media (max-width: 768px) {
  .header-content {
    padding: 0 16px;
  }
  
  .app-title {
    font-size: 20px;
  }
  
  .dashboard-main {
    padding: 24px 16px;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .user-email {
    display: none;
  }
}

@media (max-width: 480px) {
  .dashboard-header {
    padding: 12px 0;
  }
  
  .header-content {
    padding: 0 12px;
  }
  
  .app-title {
    font-size: 18px;
  }
  
  .dashboard-main {
    padding: 20px 12px;
  }
  
  .section-header h3 {
    font-size: 24px;
  }
}
