:root{
  --navy:#071d49;
  --navy-2:#0c2e6d;
  --blue:#1456c9;
  --blue-light:#eaf2ff;
  --gold:#d7a526;
  --white:#ffffff;
  --ink:#17233c;
  --muted:#6c7890;
  --line:#e6eaf1;
  --danger:#b42318;
  --success:#067647;
  --shadow:0 24px 70px rgba(7,29,73,.16);
  --radius:28px;
}

*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  min-height:100%;
  font-family:
    Inter,
    "Segoe UI",
    Arial,
    sans-serif;
  color:var(--ink);
  background:#f4f7fc;
}

body{
  min-height:100vh;
}

button,
input,
select{
  font:inherit;
}

button{
  cursor:pointer;
}

.page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.topbar{
  min-height:82px;
  padding:14px clamp(18px,4vw,56px);
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.brand-mini{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand-symbol{
  width:44px;
  height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-size:23px;
  font-weight:900;
  color:#fff;
  background:
    linear-gradient(145deg,var(--navy),var(--blue));
  box-shadow:0 8px 22px rgba(20,86,201,.24);
  border:2px solid rgba(215,165,38,.65);
}

.brand-symbol.large{
  width:54px;
  height:54px;
  border-radius:17px;
  font-size:28px;
}

.brand-mini-title{
  font-weight:850;
  font-size:14px;
  letter-spacing:.04em;
  color:var(--navy);
}

.brand-mini-sub{
  color:var(--muted);
  font-size:11px;
  margin-top:2px;
}

.language-box{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:13px;
}

.language-box select{
  border:0;
  outline:0;
  background:transparent;
  color:var(--ink);
  max-width:180px;
}

.login-shell{
  flex:1;
  width:min(1180px,calc(100% - 32px));
  margin:auto;
  padding:38px 0;
  display:grid;
  grid-template-columns:1.08fr .92fr;
  align-items:stretch;
  min-height:690px;
}

.hero-panel{
  position:relative;
  overflow:hidden;
  padding:64px;
  border-radius:var(--radius) 0 0 var(--radius);
  background:
    radial-gradient(circle at 85% 15%,
      rgba(37,110,255,.45),
      transparent 34%),
    radial-gradient(circle at 20% 90%,
      rgba(215,165,38,.2),
      transparent 32%),
    linear-gradient(145deg,#061839,#0c3377 62%,#1557c6);
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:640px;
  box-shadow:var(--shadow);
}

.hero-panel:after{
  content:"";
  position:absolute;
  width:360px;
  height:360px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:50%;
  right:-150px;
  bottom:-120px;
}

.hero-badge{
  display:inline-flex;
  width:max-content;
  padding:8px 13px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(10px);
  font-size:11px;
  letter-spacing:.15em;
  font-weight:750;
}

.hero-mark{
  margin-top:34px;
}

.hero-v{
  width:86px;
  height:86px;
  display:grid;
  place-items:center;
  font-size:50px;
  font-weight:950;
  border-radius:25px;
  color:#fff;
  border:2px solid rgba(215,165,38,.88);
  background:rgba(255,255,255,.08);
  box-shadow:
    inset 0 0 30px rgba(255,255,255,.06),
    0 20px 55px rgba(0,0,0,.2);
}

.hero-panel h1{
  margin:26px 0 10px;
  font-size:clamp(38px,5vw,62px);
  line-height:.96;
  letter-spacing:-.05em;
}

.hero-panel h1 span{
  color:#f2c956;
}

.tagline{
  margin:9px 0 36px;
  font-size:18px;
  line-height:1.55;
  color:rgba(255,255,255,.78);
}

.feature-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  max-width:500px;
}

.feature{
  padding:15px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.07);
  border-radius:15px;
}

.feature strong,
.feature span{
  display:block;
}

.feature strong{
  font-size:13px;
  color:#fff;
}

.feature span{
  margin-top:5px;
  font-size:11px;
  color:rgba(255,255,255,.62);
}

.login-panel{
  padding:54px;
  background:#fff;
  border-radius:0 var(--radius) var(--radius) 0;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.mobile-logo{
  display:none;
}

.form-heading{
  margin-bottom:30px;
}

.eyebrow{
  color:var(--blue);
  font-weight:800;
  font-size:11px;
  letter-spacing:.13em;
}

.form-heading h2,
#contextView h2,
.dashboard-top h2{
  margin:8px 0;
  font-size:32px;
  color:var(--navy);
  letter-spacing:-.035em;
}

.form-heading p,
.context-description{
  margin:0;
  color:var(--muted);
  line-height:1.55;
  font-size:14px;
}

.field{
  display:block;
  margin-bottom:19px;
}

.field>span{
  display:block;
  font-size:12px;
  font-weight:750;
  margin-bottom:8px;
  color:#34415c;
}

.field input{
  width:100%;
  height:54px;
  border:1px solid #d9deea;
  border-radius:14px;
  padding:0 15px;
  outline:0;
  color:var(--ink);
  background:#fff;
  transition:.2s;
}

.field input:focus{
  border-color:var(--blue);
  box-shadow:0 0 0 4px rgba(20,86,201,.09);
}

.password-wrap{
  position:relative;
}

.password-wrap input{
  padding-right:75px;
}

.password-toggle{
  position:absolute;
  right:8px;
  top:8px;
  height:38px;
  border:0;
  border-radius:10px;
  background:var(--blue-light);
  color:var(--blue);
  padding:0 12px;
  font-size:12px;
  font-weight:750;
}

.form-options{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin:2px 0 20px;
}

.remember{
  display:flex;
  gap:8px;
  align-items:center;
  font-size:12px;
  color:var(--muted);
}

.link-button{
  border:0;
  background:none;
  color:var(--blue);
  font-size:12px;
  font-weight:750;
}

.primary-button,
.secondary-button{
  width:100%;
  min-height:54px;
  border:0;
  border-radius:14px;
  padding:0 17px;
  font-weight:800;
}

.primary-button{
  color:#fff;
  background:
    linear-gradient(135deg,var(--navy-2),var(--blue));
  display:flex;
  align-items:center;
  justify-content:space-between;
  box-shadow:0 12px 28px rgba(20,86,201,.22);
}

.primary-button:disabled{
  opacity:.6;
  cursor:not-allowed;
}

.arrow{
  font-size:22px;
}

.secondary-button{
  margin-top:24px;
  background:#eef3fb;
  color:var(--navy);
}

.small-button{
  border:1px solid var(--line);
  background:#fff;
  color:var(--navy);
  border-radius:11px;
  padding:9px 13px;
  font-size:12px;
  font-weight:700;
}

.message{
  min-height:22px;
  margin-bottom:8px;
  font-size:12px;
  line-height:1.4;
}

.message.error{
  color:var(--danger);
}

.message.success{
  color:var(--success);
}

.login-footer{
  border-top:1px solid var(--line);
  margin-top:30px;
  padding-top:22px;
  color:#8b95a7;
  font-size:11px;
  line-height:1.5;
}

.hidden{
  display:none !important;
}

.success-icon{
  width:52px;
  height:52px;
  border-radius:50%;
  background:#e9f8ef;
  color:var(--success);
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:24px;
  margin-bottom:20px;
}

.context-list{
  margin-top:25px;
  display:flex;
  flex-direction:column;
  gap:11px;
}

.context-card{
  border:1px solid var(--line);
  border-radius:15px;
  padding:16px;
  background:#fff;
  text-align:left;
  transition:.18s;
}

.context-card:hover{
  border-color:#b9ccf6;
  background:#f7faff;
  transform:translateY(-1px);
}

.context-card strong,
.context-card span{
  display:block;
}

.context-card strong{
  color:var(--navy);
  font-size:14px;
}

.context-card span{
  margin-top:5px;
  color:var(--muted);
  font-size:12px;
}

.dashboard-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:26px;
}

.dashboard-card{
  display:flex;
  gap:18px;
  align-items:center;
  padding:22px;
  border-radius:18px;
  color:#fff;
  background:
    linear-gradient(135deg,var(--navy),var(--blue));
}

.dashboard-icon{
  width:56px;
  height:56px;
  flex:0 0 auto;
  border-radius:17px;
  display:grid;
  place-items:center;
  font-size:28px;
  font-weight:950;
  border:1px solid rgba(215,165,38,.75);
}

.dashboard-card h3{
  margin:7px 0 4px;
  font-size:19px;
}

.dashboard-card p{
  margin:0;
  color:rgba(255,255,255,.72);
  font-size:12px;
}

.role-pill{
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#f6d56f;
  font-size:9px;
  font-weight:800;
  letter-spacing:.08em;
}

.dashboard-grid{
  margin-top:18px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.dashboard-grid article{
  border:1px solid var(--line);
  padding:15px;
  border-radius:14px;
  background:#fbfcff;
}

.dashboard-grid span,
.dashboard-grid strong{
  display:block;
}

.dashboard-grid span{
  color:var(--muted);
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.dashboard-grid strong{
  margin-top:7px;
  color:var(--navy);
  font-size:13px;
}

.foundation-note{
  margin-top:20px;
  padding:13px;
  background:#fff8e6;
  color:#775c15;
  border-radius:12px;
  font-size:11px;
  line-height:1.5;
}

@media(max-width:850px){

  .brand-mini-sub{
    display:none;
  }

  .login-shell{
    width:min(560px,calc(100% - 24px));
    grid-template-columns:1fr;
    padding:22px 0 30px;
    min-height:auto;
  }

  .hero-panel{
    display:none;
  }

  .login-panel{
    border-radius:24px;
    padding:32px 24px;
    min-height:580px;
  }

  .mobile-logo{
    display:flex;
    align-items:center;
    gap:13px;
    margin-bottom:34px;
  }

  .mobile-logo strong,
  .mobile-logo span{
    display:block;
  }

  .mobile-logo strong{
    color:var(--navy);
    font-size:13px;
  }

  .mobile-logo span{
    margin-top:4px;
    color:var(--muted);
    font-size:10px;
  }
}

@media(max-width:520px){

  .topbar{
    min-height:66px;
    padding:10px 14px;
  }

  .brand-mini-title{
    font-size:11px;
  }

  .brand-symbol{
    width:38px;
    height:38px;
    border-radius:12px;
  }

  .language-box{
    padding:7px 8px;
  }

  .language-box select{
    width:100px;
    font-size:11px;
  }

  .form-heading h2,
  #contextView h2,
  .dashboard-top h2{
    font-size:27px;
  }

  .form-options{
    align-items:flex-start;
  }

  .dashboard-grid{
    grid-template-columns:1fr;
  }
}
