

:root{
    --card:#fff;
    --text:#17212b;
    --text-soft:#4b5b6b;
    --muted:#6b7280;
    --apnblue:#005397;
    --apnbluedark:#003d6a;
    --apngreen:#51B948;
    --apnorange:#f58021;
    --darkgrey:#2e2e2e;
    --offblue:#437196;
    --offwhite:#b3d7f5;
    --border:#dbe5ef;
    --disabled:#eef3f8;
    --danger:#b42318;
    --shadow-sm: 0 2px 10px rgba(15,23,42, 0.05);
    --shadow: 0 12px 40px rgba(15,23,42, 0.1);
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --bg: #f0f4fa;
    --port:#f8fbff;
    /* 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))) {
  .blurbar {
    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-image: url('/images/v2/login/bgimg2b.jpg');
    background-size: cover;
    background-position: center;
}

h1 {
    color: #ffffff !important;
}


main{
  flex: 1 0 auto;
  display: flex;
  min-height: calc(100vh - var(--footer-height));
  max-height: none; 
  justify-content: center;
  padding-bottom: 0 !important;
}

main.site-main {
  flex: 1 0 auto;
  display: block;
  box-sizing: border-box;
}


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;
}

button {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    border: none;
    transition: background-color var(--f-transition), color var(--f-transition), transform var(--f-transition), box-shadow var(--f-transition);
}


/* ===== 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;    
}

.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);
}



/*===================== Main Content & Cards ================== */

section {
    padding: 0 5vw;
    padding-top: 64px;
}

section p{
    margin-top: 12px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.5;
}

section a{
    color: var(--text);
    text-decoration: none;
}

section a:hover{
    text-decoration: underline;
    color: var(--apnblue);
}

.btn {
    width: min(465px, 92%);
    background: var(--card);
    border-radius:18px;
    box-shadow: 0 10px 28px rgba(0,0,0,.25);
    padding: 20px;
    display:block;
    flex-direction:column;
    cursor:pointer;
    margin-top: 64px;
    margin-bottom: 64px; 
  text-decoration: none;
    transition: background .15s ease, transform .04s ease, background-color .2s ease;
}


.btn2 {
  width: max(150px, 25%);
  align-items: center;
  background: var(--card);
  border-radius:18px;
  box-shadow: 0 10px 28px rgba(0,0,0,.15);
  padding: 20px;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  cursor:pointer;
  margin-top: 0px;
  margin-bottom: 0px; 
  text-decoration: none;
  transition: background .15s ease, transform .04s ease, background-color .2s ease;
}


.btn,.btn2:hover {
    background-color: var(--border);
    transform: scale(1.02);
    text-decoration: none;
}

.btn,.btn2:active {
    background-color: var(--border);
    transform: scale(0.98);
}


.btn,.btn2 span{
    color: var(--text);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
}

.text-card{
    width: 100%;
    background: var(--card);
    border-radius:18px;
    box-shadow: 0 10px 28px rgba(0,0,0,.25);
    padding: 25px;
    display:flex;
    flex-direction:column;
    margin-top: 64px;}

.blurbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 80, 0.18);
  backdrop-filter: blur(5px) saturate(110%);
  -webkit-backdrop-filter: blur(5px) saturate(110%);
  z-index: 1;
  pointer-events: none;
}


.signin-help {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    justify-content: center;
}


.login-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: left;
    margin-bottom: 18px;
    color: var(--text);
}

.login-titleVerify {
    font-size: 2rem;
    font-weight: 800;
    text-align: left;
    margin-bottom: 18px;
    color: #333333;
}

.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: none;
}

.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;
}



.platform-logo{
    display:block;
    margin:0 auto 20px auto;
    max-width:350px;
    width:100%;
    height: auto;
    object-fit: contain;
}

.grid-container{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
}

.grid-container .help-card{
    margin-top: 30px;
    margin-bottom: 30px;
}



.card-icon{
  font-size: 40px;
  margin-bottom: 8px;
  color: var(--apnblue);
}

.btn-icon{
  font-size: 22px;
  color: var(--apnblue);
  margin-right: 10px;
  vertical-align: middle;
  transition: color 0.2s ease;
}

.btn,.btn2:hover .btn-icon {
    color: var(--apngreen);
    transition: color 0.2s ease;
}


.btn,.btn2 span{
  vertical-align: middle;
}

/* Lightbox */

#lightboxContainer,
.lightboxContainer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

#lightboxBackdrop,
.lightboxBackdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(44, 62, 80, 0.18);
    backdrop-filter: blur(4px);
}

#lightboxContent,
.lightboxContent,
.lightboxPanel,
.lightboxAlert {
    position: relative;
    width: min(100%, 650px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    border-top: 8px solid var(--apnblue);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: auto;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
}

.lightbox-close:before {
    content: "x";
    font-size: 24px;
    line-height: 1;
}

.lightboxBtn-wrapper {
    text-align: center;
    padding: 20px;
    clear: both;
}

#lightboxwrapper {
    width:min(100%, 980px);
    margin:40px auto;
    padding:32px;
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow:var(--shadow);
    overflow:hidden;
}

#lightboxwrapper h1{
    font-size:2rem;
    margin-bottom: 8px;
    color: var(--text);
}

#lightboxwrapper h2{
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text);
}

#lightboxwrapper h3{
    font-size: 1 rem;
    margin-bottom: 10px;
    color: var(--text);
}

#lightboxwrapper p{
    font-size: 1rem;
    margin-bottom: 18px;
    line-height:1.5;
    color: var(--text-soft);
}

#lightboxwrapper img{
    max-width:100%;
    height:auto;
    float: left;
    width: 90px;
   text-align: center;
    padding-top: 20px;
}

#lightboxwrapper .error-title{
    color: var(--danger);
    font-weight: 600;
    
}

/* Responsive layout tweaks */
@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .nav-links {
    text-align: center;
    display: none;
    flex-direction: column;
    gap: 12px;
    min-width: 200px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    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.95);
  }

  .site-header{
    justify-content: space-between;
  }

  .grid-container{
    grid-template-columns: 1fr;
    max-width: 425px;
    width: 100%;
    justify-items: stretch;
  }

  .btn {
    width: 100%;
    margin-top: 24px;
    margin-bottom: 24px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  section {
    padding: 0 4vw;
    padding-top: 72px;
  }

  .text-card{
    margin-top: 24px;
    padding: 20px;
  }

  .btn,.btn2 {
    margin-top: 24px;
    margin-bottom: 24px;
    width: 100%;
  }

  .grid-container{
    gap: 12px;
  }
}

/* Ensure footer does not overlap this page's content */
body .site-footer {
  position: relative !important;
  z-index: 0;
  bottom: auto;
  height: auto;
  margin-top: auto;
    }

body .footer-sections{
      flex-direction: column;
      gap: 12px;
      padding: 12px;
    }
