* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f4f5f7;
  color: #1c2733;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1c2733;
  color: #fff;
  padding: 16px 24px;
}
header h1 { margin: 0; font-size: 1.3rem; }
header a { color: #9fd3ff; text-decoration: none; }
header a:hover { text-decoration: underline; }

.card {
  background: #fff;
  max-width: 720px;
  margin: 24px auto;
  padding: 20px 24px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.card h2 { margin-top: 0; font-size: 1.05rem; }
.card.danger { border: 1px solid #e2554a; }
.card.danger button { background: #e2554a; }

form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
input[type="text"], input[type="password"] {
  flex: 1;
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid #d0d5dc;
  border-radius: 6px;
  font-size: 0.95rem;
}
input[type="file"] { flex: 1; min-width: 200px; }
button {
  background: #0066b3;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}
button:hover { opacity: 0.9; }

.hint { color: #667; font-size: 0.85rem; margin-top: -4px; }
.msg { min-height: 1.2em; font-size: 0.9rem; }
.msg.ok { color: #1a8a3c; }
.msg.error { color: #c62828; }

.site-list, .file-list { list-style: none; padding: 0; margin: 0; }
.site-list li, .file-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.site-list li:last-child, .file-list li:last-child { border-bottom: none; }
.site-name { font-weight: 600; flex: 1; }
.fpath { flex: 1; font-family: monospace; font-size: 0.85rem; word-break: break-all; }
.fsize { color: #778; font-size: 0.8rem; white-space: nowrap; }
.site-list a, .file-list a { color: #0066b3; text-decoration: none; font-size: 0.9rem; }
.site-list a:hover, .file-list a:hover { text-decoration: underline; }
.delete-file { color: #c62828 !important; }

.login-page { display: flex; align-items: center; justify-content: center; height: 100vh; }
.login-form { display: flex; flex-direction: column; gap: 12px; width: 300px; }
.login-form h1 { font-size: 1.2rem; margin: 0 0 8px; text-align: center; }
.error { color: #c62828; font-size: 0.9rem; }
