﻿: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;
}


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;
    }



/* ===== 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;
}

    .btn:hover {
        background-color: var(--border);
        transform: scale(1.02);
        text-decoration: none;
    }

    .btn:active {
        background-color: var(--border);
        transform: scale(0.98);
    }


    .btn 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: relative;
    width: 100%;
    min-height: calc(100vh - var(--footer-height));
    background: rgba(44, 62, 80, 0.18);
    backdrop-filter: blur(5px) saturate(110%);
    -webkit-backdrop-filter: blur(5px) saturate(110%);
}

.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;
}

.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:hover .btn-icon {
    color: var(--apngreen);
    transition: color 0.2s ease;
}


.btn span {
    vertical-align: middle;
}

/* 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 {
        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;
}
