:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --bg-top: #eef2ff;
  --bg-bottom: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #16a34a;
  --error: #dc2626;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(30, 41, 59, 0.08);
  padding: 40px 36px;
}

.brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}

h1 {
  font-size: 24px;
  margin: 0 0 8px;
}

.subtitle {
  color: var(--muted);
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.5;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  margin-bottom: 18px;
  transition: border-color 0.15s;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--brand);
}

button {
  width: 100%;
  padding: 13px 14px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

button:hover { background: var(--brand-dark); }
button:disabled { background: #93c5fd; cursor: not-allowed; }

.flash {
  background: #fef2f2;
  color: var(--error);
  border: 1px solid #fecaca;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.user-pill {
  font-size: 13px;
  color: var(--muted);
}

.user-pill strong { color: var(--text); }

.logout-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.logout-link:hover { color: var(--brand); text-decoration: underline; }

.dropzone {
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 20px;
}

.dropzone.dragover {
  border-color: var(--brand);
  background: #eff6ff;
}

.dropzone-icon { font-size: 36px; margin-bottom: 10px; }

.dropzone-text { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.dropzone-hint { font-size: 13px; color: var(--muted); }

.file-chosen {
  font-size: 14px;
  color: var(--brand);
  margin-top: 10px;
  font-weight: 600;
  display: none;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

.center-text { text-align: center; }

.back-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: var(--brand);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.back-link:hover { text-decoration: underline; }
