:root{
  --primary:#002E54;
  --accent:#16BBD8;
  --bg:#f4f7fb;
  --card:#ffffff;
  --text:#102133;
  --muted:#627387;
  --border:#dfe7ef;
  --shadow:0 18px 40px rgba(16,33,51,.08);
}
*{box-sizing:border-box}
body{margin:0;font-family:'Inter',sans-serif;background:var(--bg);color:var(--text)}
a{text-decoration:none;color:inherit}
.portal-auth{
  min-height:100vh;display:grid;place-items:center;
  background:radial-gradient(circle at 15% 20%,rgba(22,187,216,.16),transparent 25%),linear-gradient(135deg,#061a2c 0%,#002E54 55%,#0a3d63 100%)
}
.portal-card{
  width:min(100%,480px);background:rgba(255,255,255,.96);border-radius:28px;padding:30px;box-shadow:0 24px 60px rgba(0,0,0,.18)
}
.portal-card h1{margin:0 0 10px}
.portal-card p{margin:0 0 20px;color:var(--muted);line-height:1.75}
.form-group{display:grid;gap:8px;margin-bottom:14px}
.form-control{
  width:100%;min-height:50px;padding:0 14px;border-radius:14px;border:1px solid var(--border);outline:none
}
.form-control:focus{border-color:#77dceb;box-shadow:0 0 0 4px rgba(22,187,216,.12)}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 18px;border:none;border-radius:14px;cursor:pointer;font-weight:700
}
.btn-primary{background:linear-gradient(135deg,var(--accent),#0487C3);color:#fff}
.alert{padding:14px 16px;border-radius:14px;margin-bottom:18px;font-weight:500}
.alert.success{background:#ecfdf3;color:#0b7a42;border:1px solid #b7ebc9}
.alert.error{background:#fff5f5;color:#b91c1c;border:1px solid #f0c7c4}
.portal-topbar{
  background:linear-gradient(135deg,#061a2c 0%,#002E54 55%,#0a3d63 100%);color:#fff;padding:22px 0
}
.container{width:min(1200px,calc(100% - 36px));margin:0 auto}
.portal-topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}
.portal-topbar h1{margin:0 0 6px;font-size:1.6rem}
.portal-topbar p{margin:0;color:rgba(255,255,255,.78)}
.portal-main{padding:36px 0 70px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.report-card{
  background:#fff;border:1px solid var(--border);border-radius:22px;padding:24px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:14px
}
.report-card h2{font-size:1.15rem;margin:0}
.report-card p{margin:0;color:var(--muted);line-height:1.75;flex:1}
.meta{display:grid;gap:6px;font-size:.92rem;color:var(--muted)}
.badge{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:#edf9fc;color:#03536a;font-weight:700;font-size:.85rem}
.portal-footer{padding:22px 0 36px;color:var(--muted);text-align:center}
.empty{padding:24px;border:1px dashed var(--border);border-radius:18px;background:#fbfdff;color:var(--muted)}
.small-note{font-size:.9rem;color:var(--muted);line-height:1.7}
@media (max-width:1024px){.grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:700px){
 .grid{grid-template-columns:1fr}
 .portal-topbar-inner{flex-direction:column;align-items:flex-start}
}


.portal-auth-links{
  margin-top: 18px;
  display:flex;
  gap:8px;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  color:#607086;
  font-size:.95rem;
  text-align:center;
}

.portal-section-grid{
  display:grid;
  grid-template-columns: .95fr 1.05fr;
  gap:24px;
}

.portal-panel{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:20px;
  padding:24px;
  box-shadow:0 18px 40px rgba(10,25,45,.06);
}

.portal-panel-header h2{
  font-size:1.35rem;
  margin-bottom:6px;
  color:#0c1726;
}

.portal-panel-header p{
  color:#607086;
  line-height:1.7;
  margin-bottom:20px;
}

.portal-form{
  display:grid;
  gap:16px;
}

.profile-meta{
  display:grid;
  gap:10px;
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid rgba(0,0,0,.08);
  color:#506071;
  font-size:.95rem;
}

@media (max-width: 991px){
  .portal-section-grid{
    grid-template-columns:1fr;
  }
}

.portal-card-wide{width:min(100%,680px)}
.account-type-switch{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}
.account-type-option{position:relative;cursor:pointer}
.account-type-option input{position:absolute;opacity:0;inset:0}
.account-type-option span{display:flex;align-items:center;justify-content:center;min-height:50px;padding:0 14px;border-radius:14px;border:1px solid var(--border);background:#fff;font-weight:700;color:var(--text)}
.account-type-option input:checked + span{border-color:#77dceb;box-shadow:0 0 0 4px rgba(22,187,216,.12);background:#f2fdff;color:#03536a}
.captcha-box{display:grid;grid-template-columns:180px 1fr;gap:12px;align-items:center}
.captcha-question{display:flex;align-items:center;justify-content:center;min-height:50px;padding:0 14px;border-radius:14px;background:#edf9fc;border:1px solid #cfeef5;color:#03536a;font-weight:800}
@media (max-width:700px){.captcha-box{grid-template-columns:1fr}}




.portal-auth-logo{
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.portal-auth-logo img{
  max-width: 180px;
  height: auto;
  object-fit: contain;
}

.portal-brand{
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.portal-brand img{
  max-width: 160px;
  width: 100%;
  height: auto;
  object-fit: contain;
}