
:root{
  --header-height:126px;
  --nav-height:52px;
  --footer-height:102px;
  --navy:#00485c;
  --navy-dark:#003f52;
  --gold:#d6951b;
  --text:#072541;
  --muted:#5f7690;
  --field:#cfd9e3;
}

*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  width:100%;
  height:100%;
  overflow:hidden;
}

body{
  font-family:"Inter",Arial,sans-serif;
  background:#eef4f7;
  color:var(--text);
}

.page{
  width:100%;
  height:100vh;
  display:grid;
  grid-template-rows:var(--header-height) var(--nav-height) minmax(0,1fr) var(--footer-height);
  overflow:hidden;
  background:#f1f6f8;
}


/* HEADER */

.brand-header{
  background:#fff;
  overflow:hidden;
}

.brand-content{
  height:100%;
  padding:10px 30px;
  display:flex;
  align-items:center;
  gap:18px;
}

.ds-logo{
  width:96px;
  height:96px;
  object-fit:contain;
  display:block;
  flex:0 0 auto;
  mix-blend-mode:multiply;
}

.brand-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
}

.evalcore-logo{
  width:365px;
  max-width:42vw;
  display:block;
  object-fit:contain;
  object-position:left center;
  mix-blend-mode:multiply;
}

.tagline{
  margin-top:4px;
  font-size:14px;
  line-height:1.35;
  color:#0b2745;
  font-weight:500;
}


/* NAVIGATION */

.nav-bar{
  background:linear-gradient(90deg,#00495d 0%,#004659 100%);
  box-shadow:0 3px 10px rgba(0,48,67,.15);
}

.nav-links{
  height:100%;
  display:flex;
  align-items:center;
  padding-left:37px;
}

.nav-links a{
  height:100%;
  display:flex;
  align-items:center;
  gap:8px;
  color:#fff;
  text-decoration:none;
  padding:0 14px;
  font-weight:500;
  font-size:14px;
}

.nav-links a.active{
  color:#f5a617;
}

.nav-divider{
  width:1px;
  height:21px;
  background:rgba(255,255,255,.45);
  margin:0 7px;
}

.home-icon,
.mail-icon{
  width:18px;
  height:18px;
  display:flex;
}

.home-icon svg,
.mail-icon svg{
  width:100%;
  height:100%;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.info-icon{
  width:18px;
  height:18px;
  border:1.6px solid currentColor;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:700;
  line-height:1;
}


/* MAIN */

.main-area{
  min-height:0;
  display:grid;
  grid-template-columns:minmax(0,64%) minmax(0,36%);
  gap:14px;
  padding:12px 22px 10px;
}

.platform-section{
  min-width:0;
  min-height:0;
  overflow:hidden;
  background:#fff;
}

.platform-image{
  width:100%;
  height:100%;
  display:block;
  object-fit:fit;
  object-position:center center;
  border:0;
}

.login-section{
  min-width:0;
  min-height:0;
}

.login-card{
  width:100%;
  height:100%;
  background:#fff;
  border-radius:14px;
  box-shadow:0 4px 16px rgba(10,50,70,.08);
  padding:7px 17px 8px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.welcome-art{
  height:132px;
  flex:0 0 132px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  overflow:hidden;
}

.welcome-art img{
  width:min(100%,450px);
  height:100%;
  object-fit:contain;
  display:block;
  mix-blend-mode:multiply;
}

.login-form{
  flex:0 0 auto;
  display:flex;
  flex-direction:column;
  gap:7px;
  padding:0 5px;
}

.form-group{
  display:flex;
  flex-direction:column;
  gap:5px;
}

.form-group label{
  font-size:12px;
  font-weight:700;
  color:#082442;
}

.field{
  height:43px;
  border:1px solid var(--field);
  border-radius:6px;
  display:flex;
  align-items:center;
  background:#fff;
}

.field:focus-within{
  border-color:#4c8a9c;
  box-shadow:0 0 0 2px rgba(0,93,110,.07);
}

.field-icon{
  width:38px;
  height:100%;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  color:#426886;
}

.field-icon svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.field input{
  flex:1;
  min-width:0;
  height:100%;
  border:0;
  outline:0;
  padding:0 5px 0 0;
  font:inherit;
  font-size:12px;
  color:#18344f;
  background:transparent;
}

.field input::placeholder{
  color:#8396aa;
}

.eye-button{
  width:39px;
  height:100%;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  color:#345c7c;
  display:grid;
  place-items:center;
}

.eye-button svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.eye-off{
  display:none;
}

.eye-button.visible .eye-open{
  display:none;
}

.eye-button.visible .eye-off{
  display:block;
}

.login-button{
  height:44px;
  margin-top:4px;
  border:0;
  border-radius:6px;
  background:linear-gradient(105deg,#b29a35 0%,#24766f 39%,#00645f 100%);
  color:#fff;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  font:inherit;
  font-size:15px;
  font-weight:500;
  cursor:pointer;
}

.lock-small{
  width:15px;
  height:15px;
  display:flex;
}

.lock-small svg{
  width:100%;
  height:100%;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.remember-row{
  display:flex;
  align-items:center;
  gap:7px;
  width:max-content;
  font-size:11px;
  font-weight:500;
  color:#18344f;
  margin-top:2px;
}

.remember-row input{
  width:16px;
  height:16px;
  margin:0;
  accent-color:#007268;
}

.feature-art{
  flex:1;
  min-height:0;
  margin-top:8px;
  border:1px solid #dce4ea;
  border-radius:11px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#fff;
}

.feature-art img{
  width:100%;
  height:100%;
  min-height:85px;
  max-height:140px;
  object-fit:contain;
  display:block;
  mix-blend-mode:multiply;
}


/* FOOTER */

.footer{
  background:linear-gradient(90deg,#00485c,#00465a);
  border-top:2px solid #d7981f;
  color:#fff;
  overflow:hidden;
}

.footer-content{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:30px;
}

.footer-security{
  display:flex;
  align-items:center;
  gap:14px;
}

.shield{
  width:47px;
  height:57px;
  color:#f2a318;
  display:flex;
}

.shield svg{
  width:100%;
  height:100%;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.footer-security strong{
  font-size:12px;
}

.footer-security p{
  margin:3px 0 0;
  font-size:10px;
  line-height:1.45;
}

.footer-divider{
  width:1px;
  height:52px;
  background:rgba(255,255,255,.38);
}

.footer-copy{
  min-width:280px;
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:11px;
}


/* FIT STANDARD LAPTOP SCREENS AT 100% */

@media (max-height:850px){
  :root{
    --header-height:104px;
    --nav-height:47px;
    --footer-height:82px;
  }

  .brand-content{
    padding:5px 24px;
  }

  .ds-logo{
    width:82px;
    height:82px;
  }

  .evalcore-logo{
    width:325px;
  }

  .tagline{
    font-size:12px;
  }

  .main-area{
    padding:9px 16px 8px;
    gap:12px;
  }

  .welcome-art{
    height:105px;
    flex-basis:105px;
  }

  .login-card{
    padding:4px 14px 6px;
  }

  .field{
    height:38px;
  }

  .login-form{
    gap:5px;
  }

  .login-button{
    height:39px;
  }

  .feature-art{
    margin-top:6px;
  }

  .feature-art img{
    max-height:106px;
  }

  .footer-content{
    gap:22px;
  }

  .shield{
    width:39px;
    height:47px;
  }
}

@media (max-height:700px){
  :root{
    --header-height:88px;
    --nav-height:42px;
    --footer-height:68px;
  }

  .ds-logo{
    width:70px;
    height:70px;
  }

  .evalcore-logo{
    width:280px;
  }

  .tagline{
    font-size:11px;
  }

  .nav-links a{
    font-size:12px;
  }

  .main-area{
    padding:6px 12px;
  }

  .welcome-art{
    height:88px;
    flex-basis:88px;
  }

  .form-group label{
    font-size:10px;
  }

  .field{
    height:31px;
  }

  .field input{
    font-size:10px;
  }

  .login-button{
    height:32px;
    font-size:12px;
  }

  .remember-row{
    font-size:9px;
  }

  .feature-art img{
    max-height:82px;
  }
}


/* MOBILE / TABLET */

@media (max-width:960px){
  html,
  body{
    overflow:auto;
  }

  .page{
    height:auto;
    min-height:100vh;
    display:block;
    overflow:visible;
  }

  .brand-header{
    min-height:98px;
  }

  .brand-content{
    padding:8px 15px;
  }

  .ds-logo{
    width:76px;
    height:76px;
  }

  .evalcore-logo{
    width:min(310px,58vw);
    max-width:none;
  }

  .tagline{
    font-size:11px;
  }

  .nav-bar{
    height:47px;
  }

  .nav-links{
    padding-left:8px;
  }

  .nav-links a{
    flex:1;
    justify-content:center;
    padding:0 6px;
    font-size:12px;
  }

  .main-area{
    display:flex;
    flex-direction:column;
    padding:10px;
  }

  .platform-section{
    height:530px;
  }

  .login-card{
    height:auto;
    min-height:590px;
  }

  .welcome-art{
    height:145px;
    flex-basis:145px;
  }

  .feature-art{
    min-height:135px;
  }

  .footer{
    height:auto;
  }

  .footer-content{
    min-height:100px;
    padding:15px;
    flex-wrap:wrap;
  }
}

@media (max-width:560px){
  .desktop-break{
    display:none;
  }

  .brand-content{
    gap:8px;
  }

  .ds-logo{
    width:62px;
    height:62px;
  }

  .evalcore-logo{
    width:min(250px,67vw);
  }

  .tagline{
    font-size:9px;
  }

  .nav-divider{
    display:none;
  }

  .platform-section{
    height:360px;
  }

  .login-card{
    padding:8px 10px 10px;
  }

  .footer-content{
    flex-direction:column;
    text-align:center;
    gap:10px;
  }

  .footer-divider{
    height:1px;
    width:70%;
  }

  .footer-copy{
    min-width:0;
  }
}

/* EVALCORE Flask integration */
.login-alerts{margin:0 0 14px}.login-alert{padding:10px 12px;border-radius:8px;font-size:13px;margin-bottom:7px;background:#fff3f3;border:1px solid #f0b5b5;color:#8a1c1c}.login-alert-success{background:#effaf2;border-color:#b8e1c1;color:#176b2c}.login-alert-warning{background:#fff8e6;border-color:#eed393;color:#795a0a}
