:root {
  --navy: #1d2145;
  --ink: #22243a;
  --muted: #676b80;
  --line: #e4e5ee;
  --card: #fff;
  --bg: #f4f5fb;
  --red: #c9464d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); }
body { min-height: 100dvh; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.shell { min-height: 100dvh; }
.eyebrow { font-size: 10px; font-weight: 750; letter-spacing: .17em; }

.login { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); }
.login-art {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 7vw, 100px); color: #fff;
  background: radial-gradient(circle at 85% 15%, #a33950 0, transparent 27%), linear-gradient(135deg, #171a39, #292653 65%, #432442);
}
.login-art::after { content: ""; position: absolute; width: 430px; height: 430px; right: -210px; bottom: -210px; border: 1px solid #ffffff24; border-radius: 50%; box-shadow: 0 0 0 55px #ffffff09, 0 0 0 110px #ffffff06; }
.mark { width: 86px; height: 86px; margin: 25px 0; display: grid; place-content: center; border-radius: 24px; background: #ffffff12; border: 1px solid #ffffff24; }
.mark b { font-size: 24px; line-height: 1; }.mark span { color: #f39ca0; font-size: 15px; font-weight: 700; }
.login-art h1 { margin: 0; max-width: 680px; font-size: clamp(38px, 5vw, 70px); line-height: 1.02; letter-spacing: -.055em; }
.login-art p { max-width: 560px; color: #d8d9e7; font-size: 16px; }
.login-form { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(36px, 7vw, 90px); background: #fff; }
.login-form h2 { margin: 7px 0 2px; font-size: 32px; letter-spacing: -.035em; }.login-form p { margin: 0; color: var(--muted); }
.login-form label:not(.remember) { display: flex; flex-direction: column; gap: 7px; }.login-form label span { font-size: 12px; font-weight: 650; }
.login-form input { height: 46px; border: 1px solid var(--line); border-radius: 11px; padding: 0 13px; outline: 0; background: #fafaff; }
.login-form input:focus { border-color: #7a78aa; box-shadow: 0 0 0 4px #7774a917; }
.remember { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }.remember input { width: 15px; height: 15px; accent-color: var(--navy); }
.primary { height: 47px; display: flex; justify-content: space-between; align-items: center; border: 0; border-radius: 11px; padding: 0 17px; background: var(--navy); color: #fff; font-weight: 650; cursor: pointer; }
.primary:disabled { opacity: .65; }.error { padding: 10px 12px; border-radius: 9px; background: #fff1f1; color: #a82f36 !important; font-size: 12px; }

.portal { min-height: 100dvh; max-width: 1500px; margin: auto; padding: 0 28px; }
header { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }.brand > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; }
.brand div,.account div { display: flex; flex-direction: column; }.brand b { font-size: 14px; }.brand small,.account small { color: var(--muted); font-size: 10px; }
.account { display: flex; align-items: center; gap: 9px; }.account > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: 11px; font-weight: 750; }
.account b { font-size: 12px; }.account button { margin-left: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 7px 10px; color: var(--muted); cursor: pointer; font-size: 11px; }
.hero { min-height: 245px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 42px; border-radius: 25px; color: #fff; background: radial-gradient(circle at 90% 10%, #a23d51 0, transparent 25%), linear-gradient(125deg, #181b3c, #292751 62%, #432642); box-shadow: 0 20px 55px #28284420; }
.hero h1 { margin: 9px 0 5px; font-size: clamp(32px, 4vw, 55px); letter-spacing: -.05em; }.hero p { margin: 0; color: #d6d7e6; }
.live { min-width: 220px; display: flex; align-items: center; gap: 9px; padding: 13px 15px; border: 1px solid #ffffff1f; border-radius: 12px; background: #ffffff0b; color: #e4e5ef; font-size: 11px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #55c994; box-shadow: 0 0 0 5px #55c99419; }
.apps { display: grid; grid-template-columns: 1.15fr 1.15fr .7fr; gap: 16px; margin-top: 20px; }
.app-card { position: relative; min-height: 260px; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; padding: 25px; border: 1px solid var(--line); border-radius: 19px; background: var(--card); transition: transform .18s, box-shadow .18s; }
.app-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px #25264412; }.app-card::after { content: ""; position: absolute; width: 150px; height: 150px; right: -70px; bottom: -80px; border-radius: 50%; background: currentColor; opacity: .035; }
.app-icon { width: 45px; height: 45px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 13px; font-size: 22px; font-weight: 700; }
.okr { color: #5e4ca2; }.okr .app-icon { background: #f0edff; }.docs { color: #b33d47; }.docs .app-icon { background: #fff0f1; }.monitor { color: #397d68; }.monitor .app-icon { background: #eaf8f3; }
.tag { font-size: 8px; font-weight: 800; letter-spacing: .15em; }.app-card h2 { margin: 6px 0; color: var(--ink); font-size: 22px; letter-spacing: -.03em; }.app-card p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.app-card > b { margin-top: auto; color: var(--ink); font-size: 11.5px; }.app-card > b span { margin-left: 5px; }
footer { min-height: 70px; display: flex; align-items: center; justify-content: space-between; color: #85889a; font-size: 10px; }
@media (max-width: 850px) {
  .login { grid-template-columns: 1fr; }.login-art { min-height: 36vh; padding: 35px 24px; }.login-art h1 { font-size: 37px; }.login-art p,.mark { display: none; }.login-form { min-height: 64vh; padding: 35px 24px; justify-content: flex-start; }
  .portal { padding: 0 14px calc(18px + env(safe-area-inset-bottom)); }header { height: 66px; }.account div { display: none; }.account button { margin-left: 0; }
  .hero { min-height: 210px; padding: 25px 21px; border-radius: 18px; }.hero h1 { font-size: 31px; }.live { display: none; }
  .apps { grid-template-columns: 1fr; gap: 12px; }.app-card { min-height: 205px; padding: 21px; border-radius: 16px; }.app-icon { margin-bottom: 13px; }
  footer { flex-direction: column; justify-content: center; gap: 3px; }
}
