body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 100vh; */
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #333;
}
/* ==================================================================== */
/* =============================== 1. Main Page ====================== */
.main {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #fdfbfb, #ebedee);
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .main .grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 100%;
    width: 100%;
    gap: 0; /* Убираем зазоры между блоками */
  }
  
  .main .box {
    background: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .main .box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  
  /* Анимация появления */
  .main .animate {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards ease-out;
  }
  
  .main .delay-1 {
    animation-delay: 0.3s;
  }
  
  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Кнопки */
  .main .button-group {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
  }
  
  .main .btn {
    background-color: #5c67f2;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .main .btn:hover {
    background-color: #4a54e1;
  }
  
  /* Логотип */
  .main .logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #5c67f2;
    margin-bottom: 1rem;
  }
  
  .main .subtitle {
    font-size: 1rem;
    color: #666;
    text-align: center;
    max-width: 300px;
  }
  
  /* Тексты */
  .main h1, .main h2 {
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .main p {
    text-align: center;
    max-width: 400px;
  }
  
  /* Адаптив для мобильных устройств */
  @media (max-width: 768px) {
    .main .grid-container {
      grid-template-columns: 1fr;
      grid-template-rows: auto;
    }
  
    .main .button-group {
      flex-direction: column;
      width: 100%;
      align-items: center;
    }
  
    .main .btn {
      width: 80%;
    }
  }
  
/* ==================================================================== */
/* =============================== 2. Login Page ====================== */  
.cabinet-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f7fa; /* Легкий фон для страницы */
    margin: 0; /* Убираем возможные отступы */
    width: 100%; /* Убедимся, что контейнер занимает всю ширину экрана */
}

.cabinet {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1), -4px -4px 10px rgba(255, 255, 255, 0.9);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-sizing: border-box; /* Убираем возможные проблемы с размерами */
    transition: all 0.3s ease;
}

.cabinet:hover {
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.12), -6px -6px 12px rgba(255, 255, 255, 0.9);
}

.cabinet-title {
    font-size: 24px;
    color: #333333;
    margin-bottom: 20px;
}

.cabinet-description {
    font-size: 16px;
    color: #666666;
    margin-bottom: 25px;
}

.cabinet-input {
    width: 93%;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cabinet-input:focus {
    outline: none;
    border-color: #6c7b8b;
    box-shadow: 0 0 8px rgba(108, 123, 139, 0.5);
}

.cabinet-button {
    width: 100%;
    padding: 12px;
    background-color: #6c7b8b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cabinet-button:hover {
    background-color: #5b6c7a;
}

.cabinet-logo {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

/* ==================================================================== */
/* =============================== 3. Alerts ====================== */  

.alert {
  padding: 15px 20px;
  margin: 10px 0;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.4;
  font-family: Arial, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@media (max-width: 600px) {
  .alert {
      font-size: 14px;
      padding: 12px 16px;
  }
}