@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: #111a2d;
  --panel-soft: #141f35;
  --line: rgba(173, 190, 220, .13);
  --text: #f3f6fc;
  --muted: #8e9bb2;
  --accent: #9a8cff;
  --accent-2: #70d9c2;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% -15%, rgba(119, 102, 255, .19), transparent 43%),
    radial-gradient(ellipse at 100% 100%, rgba(54, 170, 157, .08), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.app-shell { min-height: 100vh; }

.login-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 24px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: 800 19px 'Manrope', sans-serif;
  letter-spacing: -.7px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #0c1020;
  background: linear-gradient(140deg, #b6aaff, #7cdbca);
  font: 800 17px 'Manrope', sans-serif;
  box-shadow: 0 5px 22px rgba(154, 140, 255, .22);
}
.login-card {
  width: min(100%, 420px);
  margin: auto 0;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(20, 31, 53, .96), rgba(15, 23, 40, .96));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a9b4ca;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px rgba(112, 217, 194, .65); }
h1, h2 { font-family: 'Manrope', sans-serif; letter-spacing: -1.3px; }
.login-card h1 { margin: 19px 0 8px; font-size: 35px; }
.muted { color: var(--muted); }
.login-card > .muted { margin: 0 0 31px; font-size: 14px; }
form label, .password-heading label { display: block; margin-bottom: 9px; color: #dce3f0; font-size: 12px; font-weight: 600; }
input {
  width: 100%;
  height: 49px;
  padding: 0 15px;
  margin-bottom: 22px;
  outline: none;
  border: 1px solid rgba(173, 190, 220, .16);
  border-radius: 10px;
  background: rgba(7, 12, 24, .48);
  color: var(--text);
  font-size: 13px;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder { color: #66738b; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(154, 140, 255, .12); }
.password-heading { display: flex; justify-content: space-between; align-items: center; }
.password-heading a { margin-bottom: 9px; color: #b6aaff; font-size: 11px; }
.primary-button {
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 17px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(105deg, #a99aff, #7edac9);
  color: #101426;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s, filter .2s;
}
.primary-button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.primary-button span:last-child { font-size: 20px; }
.form-message { min-height: 17px; margin: -10px 0 12px; color: #ffb6b6; font-size: 11px; }
.fine-print { margin: 22px 0 0; color: #718098; font-size: 10px; line-height: 1.6; text-align: center; }
.footer-note { margin: 0; color: #65718a; font-size: 11px; letter-spacing: .3px; }

.dashboard { min-height: 100vh; }
.topbar {
  height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(22px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 16, 31, .72);
  backdrop-filter: blur(18px);
}
.topbar-actions { position: relative; display: flex; align-items: center; gap: 30px; }
.nav-link { color: #9aa7bd; font-size: 12px; }
.nav-link.active { color: #e5e9f4; }
.profile-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.035);
  color: var(--text);
  cursor: pointer;
}
.avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #b0a3ff; color: #17152b; font-size: 11px; font-weight: 800; }
.profile-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.chevron { color: var(--muted); }
.profile-menu {
  position: absolute;
  z-index: 5;
  top: 48px;
  right: 0;
  width: 210px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #172239;
  box-shadow: 0 15px 35px rgba(0,0,0,.35);
}
.menu-email { display: block; overflow: hidden; padding: 8px 8px 12px; color: var(--muted); font-size: 11px; text-overflow: ellipsis; }
.profile-menu button { width: 100%; padding: 10px 8px; border: 0; border-radius: 7px; background: transparent; color: #ffb6b6; text-align: left; font-size: 12px; cursor: pointer; }
.profile-menu button:hover { background: rgba(255,255,255,.06); }
.dashboard-content { width: min(100% - 48px, 980px); margin: 72px auto; }
.welcome-row { display: flex; justify-content: space-between; align-items: end; margin-bottom: 34px; }
.welcome-row h1 { margin: 15px 0 7px; font-size: clamp(30px, 5vw, 42px); }
.welcome-row p { margin: 0; font-size: 13px; }
.date-chip, .key-count { padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; color: #9aa7bd; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.panel { padding: 27px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg, rgba(20,31,53,.9), rgba(15,23,40,.9)); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.panel-heading h2 { margin: 0 0 6px; font-size: 19px; }
.panel-heading p { margin: 0; font-size: 12px; }
.key-list { border-top: 1px solid var(--line); }
.key-item { min-height: 78px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); }
.key-icon { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid rgba(169,154,255,.2); border-radius: 10px; background: rgba(169,154,255,.08); color: #b8adff; font-size: 19px; }
.key-details { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.key-details strong { font-size: 12px; }
.key-details span, .key-id { color: var(--muted); font-size: 10px; }
.key-status { display: flex; align-items: center; gap: 7px; color: #8cdec9; font-size: 10px; }
.key-status i { width: 6px; height: 6px; border-radius: 50%; background: #70d9c2; }
.key-id { min-width: 100px; text-align: right; font-family: monospace; }
.security-note { margin: 17px 0 0; color: #718098; font-size: 10px; }

@media (max-width: 600px) {
  .login-card { padding: 30px 24px; }
  .topbar { height: 68px; padding: 0 18px; }
  .topbar-actions { gap: 12px; }
  .nav-link { display: none; }
  .profile-name { max-width: 82px; }
  .dashboard-content { width: min(100% - 32px, 980px); margin: 48px auto; }
  .welcome-row { align-items: start; flex-direction: column; gap: 18px; }
  .panel { padding: 20px 16px; }
  .key-item { gap: 10px; flex-wrap: wrap; padding: 13px 0; }
  .key-details { min-width: 120px; }
  .key-status { margin-left: auto; }
  .key-id { width: 100%; padding-left: 47px; text-align: left; }
}
