:root {
  --navy: #0b2545;
  --navy-light: #13315c;
  --accent: #2f80ed;
  --bg: #f4f6fa;
  --border: #dde3ec;
  --text: #1c2733;
  --muted: #6b7a8c;
}

* { box-sizing: border-box; }

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

/* ---------- Login ---------- */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

.login-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  padding: 40px 36px;
  width: 100%;
  max-width: 380px;
}

.brand { text-align: center; margin-bottom: 24px; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.brand-mark.small { width: 36px; height: 36px; border-radius: 8px; font-size: 12px; margin: 0; }

.login-card h1 { font-size: 20px; margin: 0 0 4px; color: var(--navy); }
.subtitle { color: var(--muted); margin: 0; font-size: 14px; }

label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }

input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
}

input:focus { outline: 2px solid var(--accent); border-color: transparent; }

button[type="submit"] {
  width: 100%;
  margin-top: 22px;
  padding: 11px;
  border: none;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

button[type="submit"]:hover { background: var(--navy-light); }

.alert {
  background: #fdecea;
  color: #b3261e;
  border: 1px solid #f5c6c2;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 8px;
}

.footnote { text-align: center; color: var(--muted); font-size: 12px; margin-top: 20px; }

/* ---------- Files ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--navy);
  color: #fff;
  padding: 12px 24px;
}

.brand-row { display: flex; align-items: center; gap: 10px; }
.brand-name { font-weight: 600; }
.user-row { display: flex; align-items: center; gap: 14px; }
.user-name { font-size: 14px; opacity: 0.9; }

.link-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
}

.link-btn:hover { background: rgba(255, 255, 255, 0.1); }

.content { max-width: 960px; margin: 28px auto; padding: 0 20px; }

.breadcrumbs { font-size: 14px; margin-bottom: 16px; }
.breadcrumbs a { color: var(--accent); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { color: var(--muted); margin: 0 6px; }

.file-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.file-table th, .file-table td {
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.file-table th { background: #f9fafc; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
.file-table tr:last-child td { border-bottom: none; }
.file-table tbody tr:hover { background: #f6f9fe; }

.folder { color: var(--text); text-decoration: none; font-weight: 600; }
.folder:hover { color: var(--accent); }

.col-size { width: 90px; white-space: nowrap; }
.col-date { width: 170px; white-space: nowrap; color: var(--muted); }
.col-action { width: 110px; text-align: right; }

.download-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
}

.download-btn:hover { background: #1f6fdb; }

.empty { text-align: center; color: var(--muted); padding: 32px !important; }
