:root {
  color-scheme: light;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background-color: #f7f8fb;
  color: #111827;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 40%),
    linear-gradient(180deg, #ffffff 0%, #eff3f8 100%);
}

.login-shell {
  width: min(420px, calc(100% - 32px));
  padding: 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.login-header {
  margin: 0 0 28px;
  display: grid;
  gap: 8px;
}

.login-header h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.login-header p {
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
}

label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.field {
  margin-bottom: 18px;
}

input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-size: 15px;
  color: #111827;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

input::placeholder {
  color: #9ca3af;
}

.input-row {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: #4f46e5;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.actions {
  display: grid;
  gap: 14px;
}

button[type="submit"] {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.18);
}

.muted {
  color: #6b7280;
  font-size: 13px;
  margin-top: 18px;
}

.dashboard-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  padding: 28px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 30px;
}

.breadcrumb {
  margin: 0 0 8px;
  color: #6366f1;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.dashboard-header h1 {
  margin: 0;
  font-size: 34px;
  color: #111827;
}

.logout-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 14px;
  background: white;
  color: #4f46e5;
  border: 1px solid rgba(79, 70, 229, 0.15);
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.logout-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 35px rgba(79, 70, 229, 0.15);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(300px, 25%) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 28px;
  align-self: start;
  height: calc(100vh - 56px);
  overflow-y: auto;
  padding-right: 8px;
}

.panel-card {
  background: white;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
  margin-bottom: 24px;
}

.panel-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
  color: #111827;
}

.section-text {
  margin: 0 0 18px;
  color: #6b7280;
  line-height: 1.7;
}

.file-label {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #374151;
  cursor: pointer;
}

.file-label input {
  display: none;
}

.file-preview {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.file-item {
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #334155;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.file-item span {
  overflow-wrap: anywhere;
}

.file-item small {
  color: #6b7280;
}

.main-content {
  display: grid;
  gap: 24px;
}

.welcome-card,
.info-card {
  background: white;
  border-radius: 26px;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05);
}

.welcome-card h2,
.info-card h3 {
  margin-top: 0;
}

.welcome-card h2 {
  margin-bottom: 10px;
  font-size: 26px;
}

.info-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: #475569;
}

.info-card li {
  margin-bottom: 10px;
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }
}
