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

:root {
  --deep: #1A392D;
  --accent: #3CB64B;
  --border: #E2EAE5;
  --muted: #5A7268;
  --bg: #f4f7f5;
  --red: #b4233c;
  --red-bg: #fff0f2;
  --shadow: 0 18px 50px rgba(26,57,45,.10);
  --ease: cubic-bezier(.19,1,.22,1);
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { min-height: 100vh; margin: 0; background: var(--bg); color: var(--deep); font-family: 'Plus Jakarta Sans',system-ui,sans-serif; -webkit-font-smoothing: antialiased; }
button,input { font: inherit; }
button { cursor: pointer; }
.premium-bg { position: absolute; inset: 0 0 auto; height: 465px; z-index: -1; background: var(--deep); clip-path: polygon(0 0,100% 0,100% 75%,0 100%); }
.topbar { width: min(1320px,calc(100% - 48px)); height: 88px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.brand-logo { display: block; width: auto; max-width: 132px; height: 38px; object-fit: contain; object-position: left center; }
.brand-fallback { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 52px; height: 52px; display: grid; place-items: center; background: var(--accent); color: white; border-radius: 15px 5px 15px 5px; font-size: 28px; font-weight: 900; box-shadow: 0 10px 28px rgba(60,182,75,.24); }
.brand-mark.compact { width: 43px; height: 43px; border-radius: 12px 4px 12px 4px; font-size: 23px; }
.brand strong,.brand small { display: block; }
.brand strong { font-size: 19px; line-height: 1; }
.brand small { margin-top: 5px; color: rgba(255,255,255,.66); font-size: 10px; letter-spacing: .10em; text-transform: uppercase; }
.logout-button { border: 2px solid rgba(255,255,255,.22); border-radius: 999px; padding: 10px 18px; color: white; background: transparent; font-weight: 800; font-size: 12px; transition: .25s var(--ease); }
.logout-button:hover { background: white; color: var(--deep); border-color: white; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.top-actions form { margin: 0; }
.setup-button { border-radius: 999px; padding: 10px 16px; color: var(--deep); background: white; text-decoration: none; font-size: 11px; font-weight: 900; }
.user-name { color: rgba(255,255,255,.75); font-size: 11px; font-weight: 700; }
.page-shell { width: min(1040px,calc(100% - 36px)); margin: 0 auto; }
.hero { min-height: 250px; padding: 38px 4px 42px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.eyebrow { margin: 0 0 9px; color: var(--accent); text-transform: uppercase; letter-spacing: .15em; font-size: 11px; font-weight: 900; }
.eyebrow.light { color: #9de4a5; }
.hero h1 { margin: 0; color: white; font-size: clamp(36px,5vw,54px); line-height: 1.04; letter-spacing: -.052em; font-weight: 500; }
.hero h1 span { display: block; color: var(--accent); font-weight: 900; }
.hero > div > p:last-child { max-width: 620px; margin: 15px 0 0; color: rgba(255,255,255,.72); line-height: 1.65; font-size: 15px; }
.hero-seal { min-width: 260px; padding: 20px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(255,255,255,.08); display: flex; align-items: center; gap: 14px; color: white; backdrop-filter: blur(8px); }
.hero-seal > span { width: 42px; height: 42px; display: grid; place-items: center; background: var(--accent); border-radius: 50%; font-weight: 900; }
.hero-seal strong,.hero-seal small { display: block; }
.hero-seal strong { font-size: 13px; }
.hero-seal small { color: rgba(255,255,255,.58); margin-top: 5px; font-size: 10px; }
.hero-visual { width: 230px; flex: 0 0 230px; position: relative; display: grid; justify-items: end; }
.hero-visual > img { width: 150px; height: 88px; margin: 0 18px 4px 0; object-fit: contain; object-position: right bottom; opacity: .64; filter: drop-shadow(0 14px 22px rgba(0,0,0,.15)); }
.hero-visual .hero-seal { position: relative; z-index: 1; min-width: 220px; padding: 15px; }
.hero-visual .hero-seal > span { width: 36px; height: 36px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3,1fr); margin: 0 0 22px; padding: 0 18px; }
.steps li { position: relative; display: flex; align-items: center; gap: 11px; color: #879b90; }
.steps li:not(:last-child)::after { content: ''; position: absolute; z-index: -1; top: 20px; left: 54px; right: 18px; height: 2px; background: #d6e1da; }
.steps li > span { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border: 2px solid #d6e1da; border-radius: 50%; background: var(--bg); font-weight: 900; }
.steps strong,.steps small { display: block; }
.steps strong { font-size: 13px; }
.steps small { margin-top: 2px; font-size: 10px; }
.steps li.active { color: var(--deep); }
.steps li.active > span,.steps li.done > span { border-color: var(--accent); background: var(--accent); color: white; }
.steps li.done::after { background: var(--accent); }
.card { background: white; border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); }
.workspace { padding: clamp(25px,4vw,44px); }
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 34px; }
.card-heading h2,.status-card h2 { margin: 0; font-size: 23px; letter-spacing: -.025em; }
.speed-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 9px 12px; color: var(--deep); background: #eaf7ed; font-size: 11px; font-weight: 900; }
.speed-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(60,182,75,.14); }
.form-grid { display: grid; grid-template-columns: 1.2fr .85fr .85fr; gap: 18px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > span { font-size: 13px; font-weight: 900; }
.field em { color: #8ba095; font-style: normal; font-weight: 500; }
.field input { width: 100%; padding: 14px 15px; border: 2px solid var(--border); border-radius: 13px; background: white; color: var(--deep); outline: none; transition: .2s; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(60,182,75,.11); }
.field input::placeholder { color: #a4b3ab; }
.field small { color: #81958a; font-size: 10px; line-height: 1.5; }
.form-actions { margin-top: 18px; padding-top: 25px; border-top: 1px solid #edf2ef; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.form-actions p { margin: 0; color: var(--muted); font-size: 12px; }
.shield { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; color: #2d923a; background: #eaf7ed; border-radius: 50%; font-weight: 900; }
.primary-button,.secondary-button { min-height: 48px; padding: 13px 18px; border-radius: 999px; font-weight: 900; transition: .25s var(--ease); }
.primary-button { border: 0; background: var(--deep); color: white; display: inline-flex; align-items: center; justify-content: center; gap: 24px; box-shadow: 0 10px 25px rgba(26,57,45,.18); }
.primary-button:hover { background: var(--accent); transform: translateY(-2px); }
.primary-button:disabled { opacity: .58; transform: none; cursor: wait; }
.primary-button.full { width: 100%; margin-top: 8px; }
.secondary-button { border: 2px solid var(--border); background: white; color: var(--deep); }
.secondary-button:hover { border-color: var(--deep); }
.result-region { margin-top: 20px; }
.status-card { display: flex; align-items: flex-start; gap: 19px; padding: 29px 32px; }
.status-card p { margin: 7px 0 0; color: var(--muted); line-height: 1.55; }
.status-icon { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 14px; font-size: 22px; font-weight: 900; }
.status-card.danger { border: 2px solid #efacb6; background: var(--red-bg); }
.status-card.danger .status-icon { color: var(--red); background: #ffdce2; }
.status-card.success { border: 2px solid #a3dbad; background: #effaf1; }
.status-card.success .status-icon { color: #2d923a; background: #d6f2db; }
.status-card.warning { border: 2px solid #e8ce94; background: #fff9ec; }
.status-card.warning .status-icon { color: #946000; background: #ffedc2; }
.status-content { width: 100%; }
.status-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.badge { padding: 7px 10px; border-radius: 999px; white-space: nowrap; font-size: 10px; font-weight: 900; }
.badge.red { color: var(--red); background: #ffdce2; }
.badge.green { color: #2d923a; background: #d6f2db; }
.detail-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 22px; }
.detail { padding: 14px; border: 1px solid #d6e2da; border-radius: 13px; background: rgba(255,255,255,.8); }
.detail small,.detail strong { display: block; }
.detail small { color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.detail strong { margin-top: 6px; font-size: 13px; }
.records { margin-top: 19px; padding: 16px; border: 1px solid rgba(210,224,215,.8); border-radius: 13px; background: rgba(255,255,255,.76); }
.records h3 { margin: 0 0 10px; font-size: 13px; }
.records ul { margin: 0; padding-left: 20px; font-size: 12px; line-height: 1.85; }
.records a { color: var(--deep); font-weight: 900; }
.result-actions { margin-top: 21px; display: flex; justify-content: flex-end; gap: 10px; }
.spinner { width: 39px; height: 39px; flex: 0 0 39px; border: 4px solid #e1eae4; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.loading-card { align-items: center; }
.loading-house { width: 86px; height: 62px; flex: 0 0 86px; position: relative; display: grid; place-items: center; }
.loading-house img { width: 78px; height: 58px; object-fit: contain; opacity: .18; }
.loading-house .spinner { position: absolute; width: 34px; height: 34px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
footer { padding: 36px 20px; text-align: center; color: #82968a; font-size: 11px; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 22px; background: radial-gradient(circle at 20% 15%,#315b4b 0,var(--deep) 35%,#10271f 100%); }
.auth-card { width: min(430px,100%); padding: 38px; border-radius: 25px; background: white; box-shadow: 0 32px 90px rgba(0,0,0,.27); }
.auth-brand { min-height: 52px; display: flex; align-items: center; }
.auth-brand img { display: block; max-width: 165px; max-height: 52px; object-fit: contain; object-position: left center; }
.auth-card.install-card { width: min(650px,100%); }
.auth-card h1 { margin: 0; font-size: 30px; letter-spacing: -.04em; }
.auth-card .eyebrow { margin-top: 22px; }
.auth-intro { margin: 10px 0 25px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.form-error { margin: 0 0 18px; padding: 12px 14px; border-radius: 11px; color: var(--red); background: var(--red-bg); font-size: 12px; font-weight: 800; line-height: 1.5; }
.microsoft-button { width: 100%; min-height: 52px; padding: 13px 18px; border: 2px solid #d9e2dc; border-radius: 13px; display: flex; align-items: center; justify-content: center; gap: 13px; color: #172b23; background: white; text-decoration: none; font-size: 13px; font-weight: 900; transition: .2s; }
.microsoft-button:hover { border-color: var(--deep); box-shadow: 0 8px 24px rgba(26,57,45,.10); }
.microsoft-logo { width: 20px; height: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.microsoft-logo i:nth-child(1) { background: #f25022; }
.microsoft-logo i:nth-child(2) { background: #7fba00; }
.microsoft-logo i:nth-child(3) { background: #00a4ef; }
.microsoft-logo i:nth-child(4) { background: #ffb900; }
.secret-actions { display: flex; gap: 10px; margin: -4px 0 18px; flex-wrap: wrap; }
.button-link { display: flex; align-items: center; justify-content: center; text-decoration: none; margin-top: 18px; }
.form-success { padding: 14px 16px; border-radius: 12px; background: #e7f7eb; color: #165c2c; font-size: 13px; line-height: 1.55; }
.info-box span { display: block; margin-top: 5px; }
.login-note { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 10px; }
.info-box { margin: 0 0 22px; padding: 14px; border: 1px solid #cfe0d5; border-radius: 13px; background: #f1f8f3; }
.info-box strong,.info-box code { display: block; }
.info-box strong { margin-bottom: 7px; font-size: 11px; }
.info-box code { overflow-wrap: anywhere; color: var(--deep); font-size: 11px; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
@media(max-width:760px) {
  .premium-bg { height: 430px; }
  .topbar { width: calc(100% - 28px); height: 72px; }
  .brand strong { font-size: 16px; }
  .page-shell { width: min(100% - 24px,1040px); }
  .hero { min-height: 270px; padding: 30px 2px 36px; }
  .hero-visual { display: none; }
  .steps { padding: 0; }
  .steps li { justify-content: center; }
  .steps li div { display: none; }
  .steps li:not(:last-child)::after { left: 58%; right: -42%; }
  .card-heading { display: block; }
  .speed-pill { margin-top: 14px; }
  .form-grid,.detail-grid,.two-columns { grid-template-columns: 1fr; }
  .form-actions,.status-header { align-items: stretch; flex-direction: column; }
  .primary-button { width: 100%; }
  .status-card { padding: 23px 20px; }
  .result-actions { flex-direction: column-reverse; }
  .result-actions button { width: 100%; }
  .auth-card { padding: 30px 24px; }
}
