* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: linear-gradient(135deg, #00679c, #00a2e8);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container { width: 100%; max-width: 420px; }

.login-box {
  background: white;
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  text-align: center;
}

.logo { width: 130px; margin-bottom: 20px; }

h2 { margin-bottom: 25px; color: #1e2a44; }

input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

button {
  width: 100%;
  padding: 12px;
  background: #00679c;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}

button:hover { background: #0081c2; }

/* Анимация загрузки */
.loading {
  margin-top: 20px;
  color: #00679c;
}

.spinner {
  width: 35px;
  height: 35px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #00679c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

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

/* Ошибка */
.error {
  color: #d32f2f;
  margin-top: 15px;
  font-weight: 500;
  animation: shake 0.4s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* =============== ВНУТРЕННИЕ СТРАНИЦЫ =============== */
.app-container {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 240px;
  background: #1e2a44;
  color: white;
  padding: 20px 0;
}

.sidebar a {
  display: block;
  padding: 12px 25px;
  color: #ddd;
  text-decoration: none;
}

.sidebar a:hover, .sidebar a.active {
  background: #2a3a5a;
  color: white;
}

.main-content {
  flex: 1;
  background: #f8f9fa;
  overflow: auto;
}

.header {
  background: white;
  padding: 15px 25px;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  padding: 30px;
}

.file-item {
  background: white;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: 0.2s;
}

.file-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}
