:root {
  color-scheme: light;
  --bg: #fdf6f0;
  --accent: #b5476b;
  --text: #2b2b2b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.login-box, .admin-box {
  max-width: 360px;
  margin: 15vh auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.login-box input, .admin-box input {
  width: 100%;
  padding: 0.6rem;
  margin: 0.75rem 0;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.login-box button, .admin-box button {
  width: 100%;
  padding: 0.6rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.error { color: #c0392b; font-weight: bold; }

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
}

.gallery-item {
  display: block;
  text-align: center;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.video-icon {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: #eee;
  border-radius: 8px;
}

.filename {
  display: block;
  font-size: 0.75rem;
  word-break: break-all;
}

.admin-box input[type="file"] {
  border: 2px dashed #ccc;
  padding: 1.5rem 0.5rem;
  border-radius: 8px;
  text-align: center;
}

#upload-status {
  font-size: 0.9rem;
  color: #555;
}
