
:root {
  --primary: #24577B;
  --secondary: #04a9c7;
  --white: #FFFFFF; 
  --black: #000000; 
}


*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


img{
  border: 0;
  max-width:100%;
}

a{
  text-decoration: none;
  cursor:pointer;
  transition:.7s color, .7s background-color, .3s opacity;
  color:var(--primary);
}
a:focus{ 
  outline: none;
}
a:hover, .button:hover{
  color: var(--secondary); 
  transition:.3s color, .3s background-color, .3s opacity;
}
 
h2{
  font-size: 3rem;
  line-height: 1.2;
}


h3{
  font-size: 1.4rem;
  line-height: 1.2;
  color: #24577B;
  text-align:center;
  margin: 0 0 25px 0;
}


h4{
  font-size: 1.2rem;
  font-weight: 600;
  margin: 30px 0 5px 0;
}

h3:first-child, h4:first-child{
  margin-top:0;
}

p{
  margin-bottom: 15px;
}
p:last-child{
  margin-bottom:0;
}

ul, ol{
  margin: 0 0 15px 30px;
}

.large{
  font-size: 1.2rem;
}
.small{
  font-size: 0.8rem;
}

.light{
  font-weight:300;
}
.semi{
  font-weight: 600;
}

.clear{ clear: both; }

.container{
  margin: 0 auto;
  width: 96%;
  max-width: 1200px;
  position:relative;
}
.container.narrow{
  max-width: 850px;
}

.flex{
  display:flex;
}
.flex.wrap{
  flex-wrap:wrap;
}
.flex.end{
  align-items:flex-end;
}
.flex.vert{
  align-items:center;
}
.flex .full{
  width: 100%;
}
.flex .half{
  width: 47%;
  margin-right: 6%;
}
.flex .half:nth-child(2n+2){
  margin-right:0;
}

.flex .third{
  width: 32%;
  margin-right: 2%;
}
.flex .third:nth-child(3n+3){
  margin-right:0;
}

.flex.swap{
  flex-direction: row-reverse;
}

.flex.swap .half{
  margin-right:0;
  margin-left:6%;
}
.flex.swap .half:nth-child(2n+2){
  margin-left:0;
}

.grid-5{
  display: grid;
  grid-template-columns: repeat(5, 1fr); 
  gap: 20px; 
}

.grid-4{
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px; 
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-gap{
  gap: 50px !important;
}
.grid-vert{
  align-items: center; 
}

.grid-swap div:first-child{
  order: 2;
}
.grid-swap div:last-child{
  order:1;
}


.span-1 {
  grid-column: span 1;
}
.span-2 {
  grid-column: span 2;
}
.span-3 {
  grid-column: span 3;
}
.span-4 {
  grid-column: span 4;
}
.span-5 {
  grid-column: span 5;
}


.margined{
  margin: 75px auto;
}
.margined-small{
  margin: 20px auto;
}

.topmargin{
  margin-top: 75px;
}
.bottommargin{
  margin-bottom: 75px;
}

.padded{
  padding: 50px;
}

.left{
  text-align:left;
}
.center{
  text-align:center;
}
.right{
  text-align:right;
}

.relative{
  position:relative;
}

.button{
  display: inline-block;
  border-radius: 4px;
  background-color: var(--primary);
  color:var(--white);
  padding: 10px 25px;
}
.button:hover{
  background-color: var(--secondary);
  color:var(--white);
}

.inline{
  display:inline;
}

.inlineblock{
  display:inline-block;
}

.block{
  display:block;
}

.bgcover{
  background-size:cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.v50{ height: 50vh; }
.v80{ height: 80vh; }
.v100{ height: 100vh; }

.aspect-square{ aspect-ratio: 1/1; }
.aspect-video{ aspect-ratio: 16/9; }
.aspect-photo{ aspect-ratio: 4/3; }

.bg-primary{ background-color: var(--primary); }
.bg-secondary{ background-color: var(--secondary); }

.text-primary{ color: var(--primary); }
.text-secondary{ color: var(--secondary); }
.text-black{ color: var(--black); }
.text-white{ color: var(--white); }

.dev-error{
  border: 2px solid #BF312F;
  background-color: #FCDFDF;
  padding: 10px;
  margin: 20px 0;
  font-size: 13px; 
  line-height: 15px; 
}




body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  
}

body.loginbody{
  font-family: 'Montserrat', sans-serif;
  background: #f0f4f8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: url('/assets/login-bg.jpg');
  background-repeat: no-repeat;
  background-size: cover; 
  background-position: center top; 
}

.portal-header {
  background: var(--primary);
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  border-bottom: 2px solid #144F6B;
}

.portal-header .header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.portal-header img.logo {
  height: 32px;
  width: auto;
}

.portal-header h1 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  opacity: 0.9;
}

.portal-header .header-divider {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.3);
}

.portal-header .header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sidebar-user{
  padding: 20px; 
} 
.user-name {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}
.user-name span{
  font-size: .7rem;
  display:block;
}

.btn-signout {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  padding: 6px 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  margin-top: 25px; 
}

.btn-signout:hover {
  background: rgba(255,255,255,0.22);
  color: #ffffff;
}

.dashboard-embed {
  flex: 1;
  overflow: hidden;
}

.dashboard-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}



    .login-page {
      flex: 1; 
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 40px 20px;
    }

    .login-wrap {
      width: 100%;
      max-width: 440px;
    }

    .login-logo { 
      position:absolute;
      top: 30px;
      right: 30px;
      width: 250px; 
      opacity: 0.9;
      transition: .3s opacity;
    }
    a:hover .login-logo{
      opacity: 1;
    }

    .login-logo img {
      height: 60px;
      width: auto;
    }

    .login-logo .logo-text {
      font-size: 1.6rem;
      font-weight: 700;
      color: var(--primary);
      letter-spacing: -0.5px;
    }

    .login-logo .logo-text span {
      color: var(--secondary);
    }

    .login-card {
      background: #ffffff;
      border-radius: 12px;
      box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
      padding: 40px;
      position:relative;
      z-index: 6;
    }

    .login-card h1 {
      font-size: 1.4rem; 
      font-weight: 700;
      color: #1a1a2e;
      margin-bottom: 6px;
      line-height: 1.3;
    }

    .login-card .subtitle {
      font-size: 0.9rem;
      color: #6b7280;
      margin-bottom: 28px;
    }

    .error-msg {
      background: #fef2f2;
      border: 1px solid #fecaca;
      color: #b91c1c;
      border-radius: 6px;
      padding: 10px 14px;
      font-size: 0.875rem;
      margin-bottom: 20px;
      text-align:center; 
    }
    .error-msg a{
      color: #b91c1c;
      text-decoration: underline;
    }
    /* Microsoft button */
    .btn-microsoft {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      width: 100%;
      padding: 12px 20px;
      border: 1.5px solid #d1d5db;
      border-radius: 6px;
      background: #ffffff;
      color: #1a1a2e;
      font-family: 'Montserrat', sans-serif;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
      text-decoration: none;
    }

    .btn-microsoft:hover {
      background: #f3f4f6;
      border-color: #9ca3af;
      color: #1a1a2e;
      box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    }

    .btn-microsoft svg {
      flex-shrink: 0;
    }

    /* Divider */
    .divider {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 24px 0;
      color: #9ca3af;
      font-size: 0.8rem;
    }

    .divider::before,
    .divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: #e5e7eb;
    }

    /* Email toggle */
    .email-toggle {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      width: 100%;
      padding: 12px 20px;
      border: 1.5px solid #d1d5db;
      border-radius: 6px;
      background: #ffffff;
      color: #1a1a2e;
      font-family: 'Montserrat', sans-serif;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    }

    .email-toggle:hover {
      background: #f3f4f6;
      border-color: #9ca3af;
      color: #1a1a2e;
      box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    }

    /* Email form */
    .email-form {
      display: none;
      margin-top: 20px;
    }

    .email-form.visible {
      display: block;
    }

    .form-group {
      margin-bottom: 16px;
    }

    .form-group label {
      display: block;
      font-size: 0.8rem;
      font-weight: 600;
      color: #374151;
      margin-bottom: 6px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .form-group input {
      width: 100%;
      padding: 11px 14px;
      border: 1.5px solid #d1d5db;
      border-radius: 6px;
      font-family: 'Montserrat', sans-serif;
      font-size: 0.9rem;
      color: #1a1a2e;
      background: #fafafa;
      transition: border-color 0.2s, box-shadow 0.2s;
      outline: none;
    }

    .form-group input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(0, 114, 188, 0.12);
      background: #ffffff;
    }

    .form-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 18px;
    }

    .form-footer a {
      font-size: 0.825rem;
      color: var(--primary);
      font-weight: 500;
    }

    .btn-submit {
      width: 100%;
      padding: 13px 20px;
      background: var(--primary);
      color: #ffffff;
      border: none;
      border-radius: 6px;
      font-family: 'Montserrat', sans-serif;
      font-size: 0.9rem;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.2s, opacity 0.2s;
    }

    .btn-submit:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }

    .btn-submit:not(:disabled):hover {
      background: var(--secondary);
    }

    .geo{
      position:fixed;
      bottom:0;
      left:0;
      width:100%;
      display:block;
      z-index: 1;
    }

    /* Footer */
    .login-footer {
      text-align: center;
      margin-top: 28px;
      font-size: 0.78rem;
      color: #9ca3af;
      position:relative;
      z-index: 2; 
    }

    .login-footer a {
      color: #fff;
      opacity: .6;
    }

    .login-footer a:hover {
      opacity: 1;
    }

    @media (max-width: 800px) {
      .login-card {
        padding: 28px 24px;
      }

      .login-logo{
        position:static; 
        margin-bottom: 20px; 
        opacity: 1;
      }
    }




