
:root{
    --card:#fff;
    --text:#1a1f24;
    --muted:#6b7280;
    --apnblue:#005397;
    --apngreen:#51B948;
    --apnorange:#f58021;
    --darkgrey:#2e2e2e;
    /* footer styles */
    --f-primary:#2c3e50;
    --f-secondary: #34495e;
    --f-accent: #3498db;
    --f-light:#ecf0f1;
    --f-success: #27ae60;
    --f-warning: #f39c12;
    --f-alert:#e74c3c;
    --f-text:#2c3e50;
    --f-text-light: #7f8c8d;
    --f-border:rgba(189, 195, 199, 0.5);
    --f-shadow: rgba(44,62,80,0.15);
    --f-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --footer-height: 80px;
}


/* if the browser doesn't supprort backdrop-filter, use a solid bg color */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .left {
    background: rgba(44, 62, 80, 0.95); /* fallback for no backdrop-filter support */
  }
}

/*-------------------- Reset & Base styles ---------------- */

*{
    box-sizing:border-box;
    margin:0;
    padding:0;

}

html{
    height:100%;
    margin: 0;
}

body{
    display:flex;
    flex-direction:column;
    min-height:100vh;
    font-family: system-ui, -apple-system, Segoe Ui, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--f-primary);
}

h2 {
    color: #ffffff !important;
}

main{
  flex: 1 0 auto;
  display: flex;
  min-height: calc(80vh - var(--footer-height));
  max-height: none; 
}

main.site-main, main {
  flex: 1 1 auto;
  display: block;
  box-sizing: border-box;
  padding-bottom: 0;
  min-height:0;
}


footer{
  flex-shrink: 0;
 width:100%;
}

section, main, footer {
  height: auto;
  scroll-snap-align: start;
}


section.site-section, main.site-main, footer.site-footer, section.page {
  height: auto;
  scroll-snap-align: start;
}







/* ===== Header Navigation ===== */
.site-header {
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0;
  height: 64px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  z-index: 1000;
  background: none;          
  backdrop-filter: none;    
}


/*.page {
  padding-top: 64px;
}
*/

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* logo */
.brand img{
  display: block;
  height:40px;
}


.nav-links {
  display: flex;
  gap: 15px;
}


.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
}


.nav-links a:hover {
  color:var(--darkgrey);
  background: rgba(255,255,255,0.5);
}

/* site header when scrolled */
.site-header.scrolled{
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px) saturate(110%);
    -webkit-backdrop-filter: blur(8px) saturate(110%);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: var(--f-transition);
}

.site-header.scrolled .nav-toggle span{
    background: var(--darkgrey);
}

/* nav-links when scrolled */
.nav-links.scrolled a,
.site-header.scrolled .nav-links a {
    color: var(--darkgrey);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 8px;
    background: transparent;
    transition: color .2s ease, background .2s ease;
}

/* smooth default transition */
.nav-links a {
    transition: color .2s ease, background .2s ease;
}


.contact-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 8px;
  border:none;
  cursor:pointer;
  background: #f58021;
}

.contact-btn a{
  background: #f58021;
  color: #fff;
  text-decoration: none;
  font-weight: 600;

  cursor:pointer;
  transition: background .15s ease;
}
.contact-btn:hover{
  background: #cc6b1c;
}


/* Hamburger toggle*/
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  position: fixed;
  top: 16px;
  right: 5vw;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  width: 24px; 
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/*foreground*/

.page{
    display: flex;
    flex: 1 0 auto;
    min-height: calc(100vh - var(--footer-height));
    width:100%;
    padding-bottom:0 !important;
}

.left{
    flex: 0 0 42%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(44, 62, 80, 0.18); 
    backdrop-filter: blur(12px) saturate(110%);
    -webkit-backdrop-filter: blur(12px) saturate(110%);

}

.login-card {
    width: min(425px, 92%);
    background: var(--card);
    border-radius:18px;
    box-shadow: 0 10px 28px rgba(0,0,0,.25);
    padding: 28px;
    display:flex;
    flex-direction:column;
    margin-top: 64px;
    margin-bottom: 64px;
    
}

.logo{
    display:block;
    margin:0 auto 20px auto;
    max-width:350px;
    width:100%;
    height: auto;
    object-fit: contain;
}

.login-title{
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 18px;

}

.input{
    width:100% !important;
    padding: 14px 10px;
    border-radius:8px;
    border:1px solid #d8dbe2 !important;
    background:#f9fafb;
    font-size:16px;
    margin-bottom:10px;
    outline:none;
    transition: border .15s ease, background .15s ease;
}
.input:focus{
    border-color: #c4c8d2;
    background:#fff;
}

.forgot-links {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 12px;
}

.forgot-links a {
  color: #2563eb;
  text-decoration: none;
  padding-bottom: 10px;
  text-align: left;
  
}

.forgot-links a:hover{
    text-decoration: underline;
}

.signin {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-top: 8px;
}

.signin-btn {
    display: block;
    width: 50%;
    justify-content: flex-end;
    padding: 14px 12px;
    border: none;
    border-radius: 12px;
    border-color: #ffffff !important;
    background: #f58021 !important;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background .15s ease, transform .04s ease, background-color .2s ease;
    text-shadow: -1px -1px 0 #f58021, 1px -1px 0 #f58021, -1px 1px 0 #f58021, 1px 1px 0 #f58021 !important;
}

.checkbox{
    display:flex;
    align-items: center;
    gap:8px;
    margin:6px 2px 16px;
    font-size:14px;
}

.links{
    text-align:center;
    margin: 6px 0 16px;
    color: var(--muted);
    font-size:14px;
    padding-bottom: 10px;
}

.links a{
    color:#2563eb;
    text-decoration: none;
}

.links a:hover{
    text-decoration: underline;
}



.btn {
    display: block;
    width: 100%;
    padding: 14px 12px;
    border: none;
    border-radius: 12px;
    border-color: #ffffff !important;
    background: #f58021 !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background .15s ease, transform .04s ease, background-color .2s ease;
    text-shadow: -1px -1px 0 #f58021, 1px -1px 0 #f58021, -1px 1px 0 #f58021, 1px 1px 0 #f58021 !important;
}

.btn:hover{
    background-color:#cc6b1c;
    transform: scale(1.02);
}
.btn:active{
    background-color:#cc6b1c;
    transform: scale(0.98);
}

/* Right side:  images & promos */

.right{
    position: relative;
    flex: 1 1 58%;
    display:flex;
    min-height:calc(100vh - 64px );
    z-index: 4;
}

.dots{
    position: absolute;
    right:20px;
    bottom: 18px;
    display: flex;
    gap: 10px;
    display:flex;
    z-index:1;
    pointer-events: auto;
}

.dot{
    width:15px;
    height:15px;
    border-radius:50%;
    border:none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: transform .12s ease, background 0.3s ease;
}

.dot.active{
    background: #fff;
    transform: scale(1.4);
}

/* Right-side: Background slideshow + overlay */

.right {
  position: relative;
  overflow: hidden;
}

.right-overlay {
  position: absolute;
  top:0; 
  right:0; 
  bottom:0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: right;
  pointer-events: none;
  z-index: 5;
  padding:28px;
  
}

.overlay-inner {
  pointer-events: auto;
  max-width: clamp(380px, 35vw, 550px);
  margin-right: clamp(20px, 5vw, 64px);
  padding: 20px;
  height: 230px;
  color: #fff;
  text-align: right;
  padding: 10px;
  color: #fff;
  text-align: right;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.8) 100%);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  opacity: 0;
  transition: transform .36s cubic-bezier(.2,.9,.2,1), opacity .36s ease;
}

.overlay-inner.anim-in {
  opacity: 1;
  transform: none;
}

.overlay-title{
    font-size: clamp(20px,2.4vw,28px);
    margin: 0 0 10px;
    font-weight: 700;
    padding:10px;
}

.overlay-logo,
.overlay-logo img {
    display: block;
    width: auto;
    max-width: clamp(100px, 10vw, 150px);
    height: auto;
    margin: 0px 0 6px auto;
    object-fit: contain;
}

.overlay-copy{
    margin: 0 0 14px;
    color: rgba(255,255,255,0.92);
    padding: 10px;
}

.overlay-actions {
  display: flex;
  gap:20px;
  justify-content: flex-end;
}

.overlay-cta {
  background: var(--brand);
  color:#fff;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  box-shadow:0 6px 14px rgba(0,0,0,0.18);
}

.overlay-ghost {
    background: rgba(0,0,0,0.8);
    color:#fff;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    border:1px solid rgba(255,255,255,0.4);
}

.overlay-actions a:hover {
background: rgba(255,255,255,0.15);
}

.bg-slideshow{
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: right center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 3600ms cubic-bezier(0.5, 0, 0.2, 1),visibility 0s linear 3600ms;
    will-change: opacity;
    animation: bgFadeIn 3.6s ease;
    z-index: 1;
}

    .bg-slide.active {
        opacity: 1;
        visibility: visible;
        transition: opacity 3600ms cubic-bezier(0.5, 0, 0.2, 1),visibility 0s linear 0s;
        z-index: 2;
    }

.bg-slideshow.initialized .bg-slide.active {
    animation: bgFadeIn 3.6s ease;
}

@keyframes bgFadeIn{
    from{
        opacity:0;
    }
    to{
        opacity:1;
    }
}



  
  @media (max-width: 1024px){
    .page{ flex-direction:column;
          min-height: auto;
  position: relative;
   }
   .site-footer{
      
      padding-top: 20px;
      position: relative;
      bottom: 0;
      margin-top: auto;
    }

    .left{ 
    flex: 1 0 auto;
    width: 100%;
    min-height: 100vh;
    background: none;
    backdrop-filter: blur(12px) saturate(110%);
    -webkit-backdrop-filter: blur(12px) saturate(110%);
    margin: 0;
    margin-top: 30px;
    padding: 0;
    justify-content: center;  
    align-items: center;
    }

    .right{ display:none; }

    .login-card{ 
      width:min(520px, 96%);
      margin-top: 10px;
      margin-bottom: 10px; 
      justify-content: center;
      align-items: center;
      text-align: left;}
    .bg-slideshow{ display:none; }
    
   
    
  }


/*for smaller screens*/

@media screen and (max-height: 1020px) and (min-width: 0px) {
  .login-card{ 
    width:min(400px, 96%);
    margin-top: 10px;
    margin-bottom: 10px;
    justify-content: center;
    align-items: center;
  }
  body{
    background: linear-gradient(135deg, #21f580 0%, #005397 100%); 
  }
}

  /* Mobile */
@media (max-width: 900px)  {

  .left{ 
    flex: 1 0 auto;
    width: 100%;
    min-height: 100vh;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    margin: 0;
    padding: 0;
    justify-content: center;  
    align-items: center;
  }

  .nav-toggle { display: block; }

  .nav-links {
    text-align: center;
    display: none;
    flex-direction: column;
    gap: 12px;
    min-width: 200px;
    padding: 12px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
  }
  .nav-links a {
    background: rgba(52,73,98,0.25);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px;
    border:none;
    cursor:pointer;
  }
  .contact-btn a{
  background: #f58021;

}
  .nav-links.open {
    display: flex;
    position: fixed;
    top: 55px;
    right: 5vw;
    transition: var(--f-transition)
  }

    .nav-links.open.scrolled {
    display: flex;
    position: fixed;
    top: 55px;
    right: 5vw;
    transition: var(--f-transition);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px) saturate(110%);
    -webkit-backdrop-filter: blur(8px) saturate(110%);
  }

  .nav-links a:hover {
  background: rgba(255,255,255,0.1);
}

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

.contact-btn a:hover {
  background: none;}

  body{
    background: linear-gradient(135deg, #21f580 0%, #005397 100%); 
  }

 /* .contact-btn{
    /*display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 8px;
    border:none;
    cursor:pointer;
  }*/

  
/*.contact-btn.open { 
  display: flex; 
}*/

.site-header{
      justify-content: space-between;
    }



  }

  @media (max-width: 1024px) {
    .login-card{
       width:min(400px, 96%);
      margin-top: 15px;
    justify-content: center;
      margin-bottom: 15px;
      align-items: center;}

    .footer-sections{
      gap: 14px;
      padding: 16px;
    }
    .footer-section{ 
      flex:1 0 220px; }

    .footer-bottom{
      flex-direction:column;
    gap: 8px;
  align-items: flex-start;
    }
    
    .page{ padding-bottom: 16px;}
    .login-title{font-size:26px}
    .btn{font-size:15px}

    .page {
        height: auto;
          padding-bottom: 16px;
        }

      .site-footer {
      position: relative;
      bottom: auto;
      height: auto;
      margin-top: auto;
    }
    .footer-sections{
      flex-direction: column;
      gap: 12px;
      padding: 12px;
    }

  }
  @media (max-width: 420px) {
    .page{ padding-bottom: 16px;}
    .login-title{font-size:26px}
    .btn{font-size:15px}
    .login-card{
       width:min(300px, 96%);
      margin-top: 10px;
      margin-bottom:10px;
    justify-content: center;
      align-items: center;
}

        .page {
        height: auto;
          padding-bottom: 16px;
        }

      .site-footer {
      position: relative;
      bottom: auto;
      height: auto;
      margin-top: auto;
    }
    .footer-sections{
      flex-direction: column;
      gap: 12px;
      padding: 12px;
    }

  }


@media (max-width: 480px) and (min-width: 0px) {
  .login-card{
  width:min(280px, 96%);
  margin-top: 10px;
  margin-bottom:10px;
  justify-content: center;
  align-items: center;}

  .login-title{
  font-size:24px}

  .btn{
  font-size:14px}

  .forgot-links a{
  color: #2563eb;
  font-size: 9px;
  padding:5px;
  }

  .login-card label{
    font-size: 11px;
    vertical-align: center;
  }
}
 