:root {
  color-scheme: dark;
  --cp-bg: #112424;
  --cp-bg-deep: #091818;
  --cp-card: #0f2121;
  --cp-border: #193d3d;
  --cp-text: #dbece8;
  --cp-muted: #94c0bc;
  --cp-accent: #14c4b8;
  --cp-accent-hover: #61ded3;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--cp-text);
  background: radial-gradient(ellipse at 50% -15%, #1a3836 0%, var(--cp-bg) 48%, var(--cp-bg-deep) 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.cp-topbar {
  position: relative;
  z-index: 2;
  min-height: 72px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  padding-right: clamp(16px, 4vw, 44px);
  overflow: hidden;
  background: #040808;
  border-bottom: 2px solid var(--cp-border);
  font-family: "JetBrains Mono", monospace;
}
.cp-topbar-segments { display: flex; min-width: 0; align-items: stretch; gap: 3px; }
.cp-segment {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 30px 0 18px;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
}
.cp-segment-brand { background: #0c6868; color: #d4f4f0; font-weight: 700; font-size: 13px; }
.cp-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1.5px solid rgba(255,255,255,.32);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 12%;
  background: #fff;
}
.cp-segment-app { gap: 8px; background: #2a3848; color: #c8dcdc; font-size: 11px; }
.cp-segment-app .cp-slash { color: var(--cp-accent); }
.cp-topbar-right { display: flex; align-items: center; gap: 22px; color: #94c0bc; font-size: 11px; white-space: nowrap; }
.cp-secure-status { display: inline-flex; align-items: center; gap: 8px; }
.cp-secure-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cp-accent); box-shadow: 0 0 10px rgba(20,196,184,.75); }
.cp-academy-link { color: #61ded3; transition: color .16s ease; }
.cp-academy-link:hover { color: #d4f4f0; }
.cp-login-main { min-height: calc(100vh - 74px); display: flex; flex-direction: column; align-items: center; padding: clamp(22px, 3.5vh, 38px) 22px 30px; }
.cp-login-shell {
  width: min(100%, 1100px);
  overflow: hidden;
  background: rgba(15,33,33,.92);
  border: 1px solid var(--cp-border);
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
}
.cp-shell-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 22px; color: #7fa6a1; background: #091818; border-bottom: 1px solid var(--cp-border); font: 10px "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.cp-shell-path { color: #d4f4f0; }
.cp-shell-path b { color: var(--cp-accent); font-weight: 600; }
.cp-login-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: clamp(28px, 5vw, 64px); padding: clamp(24px, 3.8vw, 42px); }
.cp-copy { align-self: center; }
.cp-eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 17px; color: var(--cp-accent); font: 11px "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.cp-eyebrow-prefix { color: #779b97; }
.cp-copy h1 { margin: 0; color: var(--cp-text); font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -.045em; }
.cp-description { max-width: 510px; margin: 17px 0 24px; color: var(--cp-muted); font-size: 15px; }
.cp-feature-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.cp-feature { min-height: 100px; padding: 14px; background: #112424; border: 1px solid var(--cp-border); }
.cp-feature-icon { width: 19px; height: 19px; margin-bottom: 9px; color: var(--cp-accent); }
.cp-feature h2 { margin: 0 0 5px; color: var(--cp-text); font-size: 12px; font-weight: 700; }
.cp-feature p { margin: 0; color: var(--cp-muted); font-size: 11px; line-height: 1.5; }
.cp-auth-panel { align-self: center; padding: 24px; border: 1px solid #28504c; background: #0b1b1b; }
.cp-panel-mark { display: inline-block; margin-bottom: 15px; padding: 4px 8px; color: #94c0bc; border: 1px solid #28504c; font: 9px "JetBrains Mono", monospace; letter-spacing: .1em; }
.cp-auth-panel h2 { margin: 0 0 8px; color: var(--cp-text); font-size: 19px; line-height: 1.3; }
.cp-auth-panel > p { margin: 0 0 22px; color: var(--cp-muted); font-size: 12px; }
.cp-login-button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 12px 16px;
  color: #041414;
  background: var(--cp-accent);
  border: 0;
  font-size: 13px;
  font-weight: 700;
  transition: background .16s ease, transform .16s ease;
}
.cp-login-button:hover { color: #041414; background: var(--cp-accent-hover); transform: translateY(-1px); }
.cp-ms-logo { width: 17px; height: 17px; flex: 0 0 17px; }
.cp-auth-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; color: #7fa6a1; font-size: 10px; line-height: 1.5; }
.cp-auth-note svg { width: 14px; height: 14px; flex: 0 0 14px; color: var(--cp-accent); }
.cp-auth-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--cp-border); color: #638884; font: 9px "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.cp-auth-footer a { color: #94c0bc; }
.cp-auth-footer a:hover { color: var(--cp-accent-hover); }
@media (max-width: 760px) {
  .cp-topbar { padding-right: 14px; }
  .cp-topbar-right { gap: 12px; }
  .cp-topbar-right .cp-secure-status { display: none; }
  .cp-segment-app { display: none; }
  .cp-login-main { padding: 24px 14px; }
  .cp-login-layout { grid-template-columns: 1fr; gap: 25px; padding: 28px 22px; }
  .cp-auth-panel { width: 100%; }
}
@media (max-width: 460px) {
  .cp-topbar { min-height: 62px; }
  .cp-segment { min-height: 60px; }
  .cp-segment-brand { padding-right: 22px; }
  .cp-topbar-right { font-size: 9px; }
  .cp-shell-bar { padding: 10px 14px; font-size: 8px; }
  .cp-feature-list { grid-template-columns: 1fr; }
  .cp-feature { min-height: 0; }
  .cp-auth-footer { padding: 12px 14px; font-size: 8px; }
}
@media (max-width: 600px) {
  .cp-topbar { min-height: 0; flex-direction: column; gap: 0; padding: 0; overflow: visible; }
  .cp-topbar-segments { display: block; width: 100%; min-width: 0; }
  .cp-segment-brand { width: 100%; min-height: 62px; height: auto; padding: 8px 18px; gap: 12px; clip-path: none; white-space: normal; }
  .cp-segment-brand > span { flex: 0 0 auto; min-width: max-content; overflow: visible; }
  .cp-avatar { flex: 0 0 40px; width: 40px; height: 40px; }
  .cp-topbar-right { display: block; width: 100%; min-width: 0; padding: 8px 12px 10px; white-space: normal; }
  .cp-topbar-right .cp-brand-controls { position: static !important; inset: auto !important; display: flex; width: 100%; min-height: 0; flex-wrap: wrap; justify-content: flex-start !important; gap: 6px; padding: 0; border: 0; background: transparent; }
  .cp-topbar-right .cp-control { flex: 0 1 auto; min-height: 36px; padding: 7px 10px; white-space: normal; font-size: 11px; }
}
