/* navigation */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 20px;
    background-color: transparent;
}

.navbar ul {
    list-style: none;
    margin: 0.25rem 0;
}


.nav-links a {
    color: inherit;
    text-decoration: none;
}

.menu a,
.dropdown a {
    text-decoration: none;
}

.menu a:hover,
.dropdown a:hover {
    text-decoration: none;
}

.menu {
    display: flex;
    gap: 1em;
    font-size: 1rem;
}

.menu li {
    padding: 5px 14px;
}

.menu li:hover {
    background-color: #71C9CE;
    border-radius: 5px;
    transition: 0.3s ease;
}

.menu li#signup {
    padding: 5px 14px;
    background-color: #71C9CE;
    border-radius: 5px;
}

.menu li#signup:hover {
    background-color: #45a8c2;
    transition: 0.3s ease;
}

.menu li#signup a {
    color: #ffffff;
}

/* DROPDOWN MENU */
.services {
    position: relative;
}

.dropdown {
    background-color: #f2f2f2;
    padding: 10px 0;
    position: absolute;
    display: none;
    border-radius: 8px;
    top: 100%;  
    left: 0;
    z-index: 1000;
}

.dropdown::before {
    content: "";
    position: absolute;
    top: -20px;   
    left: 0;
    width: 100%;
    height: 20px;  
    background-color: transparent;
    display: block;
}

.dropdown li+li {
    margin-top: 10px;
}

.dropdown li {
    padding: 0.5em 15px;
    width: 4em;
    text-align: center;
}

.dropdown li:hover {
    background-color: #71C9CE;
}

.services:hover .dropdown {
    display: block;
    width: 10%;
}


/* RESPONSIVE NAVBAR MENU */

input[type=checkbox] {
    display: none;
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    font-size: 24px;
    user-select: none;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; 
    min-height: 100vh; 
    align-items: center;
    background: pink;
    background: -webkit-linear-gradient(to right, #FFFDE4, #005AA7);
    background: linear-gradient(to right, #FFFDE4, #005AA7);
}

/* --- LOGO STYLES --- */
/* =========================================
   1. PC / DESKTOP VIEW (Default Styles)
   This applies to large screens (>1024px)
   ========================================= */
.navbar .logo {
    display: flex;         
    align-items: center;   
    gap: 24px;             
}

.brand-vidcall {
    height: 40px;           
    width: auto; 
    margin-top: 6px;          
}

.brand-apd {
    height: 75px;          
    width: auto;
}

/* =========================================
   2. TABLET / LAPTOP VIEW (Max 1024px)
   ========================================= */
@media (max-width: 1024px) {
    body{
        font-size: 1rem;
    }
    .navbar .logo {
        gap: 16px;          
    }

    .brand-vidcall {
        margin-left: 1rem;
        height: clamp(28px, 4vw, 36px); 
    }

    .brand-apd {
        /* Scales height between 50px and 65px */
        height: clamp(50px, 7vw, 65px);
    }
}

/* =========================================
   3. MOBILE PHONE VIEW (Max 768px)
   Optimized for tight spaces
   ========================================= */
@media (max-width: 768px) {
    .navbar .logo {
        gap: 10px;          
    }

    .brand-vidcall {
        height: 24px;       
    }

    .brand-apd {
        height: 45px;
    }
}

/* Placeholder Text Color Fix */
.authentication-form input::placeholder {
    color: #888888; /* Dark Grey */
    opacity: 1; /* Firefox defaults to lower opacity */
}

/* For Edge/IE specifically */
.authentication-form input::-ms-input-placeholder {
    color: #888888;
}


/* --- NAVBAR LAYOUT STYLES --- */
.navbar {
    width: 100%; 
    z-index: 999;  
    background-color: transparent; 
    position: absolute; 
    top: 0;
}

/* Reset default list styles for the nav */
.nav-links {
    list-style: none;
    margin-right: 2rem !important;
    padding: 0;
    display: flex;
    align-items: center;
}
/* error input */
.error-input {
    display: block;
    width: 100%;
    color: #ff0000;
    font-size: 14px;
    margin-bottom: 5px;
}

/* gc035-20260129 */
.authentication-container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 30%;
    text-align: center;
    margin:10rem auto; 
    position: relative;       
    top: 10px;
}

.authentication-container h2 {
    color: #333333;
}

.authentication-container .material-symbols-outlined {
    font-size: 2vw; /*leekp301*/
}


.authentication-container img {
    max-width: 8vw; 
    width: 100%;
    height: auto;
    margin-bottom: 1vw; 
}

.authentication-form input[type="text"],
.authentication-form input[type="email"],
.authentication-form input[type="password"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 16px;
}

.g-recaptcha {
    display: inline-block;
    margin-bottom: 20px;
}

.password-input-container {
    position: relative;
}

.password-input-container .toggle-password,
.password-input-container .toggle-repassword  {
    position: absolute;
    top: 35%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #007bff;
    font-size: 1.5rem;
}

.authentication-form input[type="submit"] {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 10px;
}

.authentication-form input[type="submit"]:hover {
    background-color: #0056b3;
}

.authentication-form a {
    color: #555555;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 10px;
}

.authentication-form a:hover {
    text-decoration: underline;
}

.g-recaptcha {
    text-align: center;
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {

    .authentication-container {
        width: 100%;
        padding: 15px;
        margin: 0 5%;
    }
}

@media only screen and (max-width: 768px) {
    
    .authentication-container {
        width: 100%;
        padding: 20px;
        margin: 0 2%;
    }
    .authentication-container img {
        max-width: 35vw; 
    }
}

/* =============== */
/* START OF FOOTER */
/* =============== */

/* 1. Main Footer Container */
footer, .footer {
    width: 100%;
    padding: 20px 0; 
    margin-top: auto; 
    background-color: transparent !important;
    display: flex;
    flex-direction: column; 
    align-items: center;    
    justify-content: center;
    gap: 15px; 
    position: relative; 
    text-align: center;
}

/* 2. Logo Container Alignment */
footer .logo, .footer .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Space between the two logos */
    margin-top: 0; /* Reset margins */
}

/* 3. Logo Sizing (Keep your existing sizes) */
footer .footer-brand-vidcall {
    height: 50px !important;
    width: auto !important;
    filter: drop-shadow(0px 1px 1px rgba(0,0,0,0.1));
}

footer .footer-brand-apd {
    height: 65px !important;
    width: auto !important;
    object-fit: contain !important;
    border-left: 1px solid #ddd;
    padding-left: 20px;
}

/* 4. Text and Link Styling */
footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d; /* Muted text color */
}

footer a {
    color: #007bff;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

/* 5. Mobile Adjustments */
@media (max-width: 768px) {
    footer .logo {
        flex-direction: column; /* Stack logos on very small screens */
        gap: 10px;
    }
    
    footer .footer-brand-apd {
        border-left: none; /* Remove border when stacked */
        padding-left: 0;
        height: 55px !important;
    }
}
/* ============= */
/* END OF FOOTER */
/* ============= */

/* ================== */
/* START OF LOGIN.PHP */
/* ================== */
.authentication-container {
    min-width: 600px;
    padding: 20px;
    border-radius: 8px;
    margin: auto 0;
}

.login-image-left {
    border-right: 2px solid black;
    padding-right: 150px;
    align-self: stretch;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.login-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 150px;
    flex: 1;              
    width: 100%;          
    padding-top: 80px;    
}

.login-image-left img {
    max-width: 250px;
    height: auto;
    display: block;
}

.dropdown {
    width: 250px !important;
}


.services:hover .dropdown {
    min-width: 92px !important;
    width: 92px !important;
}

.footer .footerLogin {
        bottom: 0;
        text-align: center;
        margin-top: 40px;
        font-size: 12px;
        color: black;
        padding-bottom: 20px;
    
}

.menu {
    display: flex;         
    gap: 20px;             
    list-style: none;     
    padding: 0;
    margin: 0;
}




/* 2. Menu Items */
#checkbox_toggle {
    display: none;
}
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* ========================================= */
/* MOBILE RESPONSIVENESS           */
/* ========================================= */
@media (max-width: 768px) {
    .hamburger {
        display: block;   /* Show hamburger on mobile */
        padding-right: 20px;
    }

    .menu {
        display: none;    /* Hide menu by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 60px;        /* Push below navbar */
        right: 0;
        background-color: white;
        width: 100%;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        text-align: center;
        padding-bottom: 20px;
    }

    /* Show menu when checkbox is checked */
    #checkbox_toggle:checked ~ .menu {
        display: flex;
    }

/* ... inside @media (max-width: 768px) ... */

    /* 1. Hide the invisible hover bridge on mobile */
    .dropdown::before {
        display: none !important; 
        content: none !important;
    }

    /* 2. Ensure the dropdown flows naturally (pushes content down) */
    .dropdown {
        position: static !important; /* Forces it to sit BELOW the parent, not float */
        display: none;               /* Hidden by default */
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        padding-top: 10px;           /* Add slight space so it doesn't jump */
    }

    /* 3. Ensure the dropdown items don't overlap anything */
    .dropdown li {
        width: 100% !important;
        z-index: 1001;               /* Ensure it stays on top of page content */
    }

    /* 4. Make sure the parent click area is clean */
    .menu li.services {
        display: block;
        position: relative;          /* Keeps the structure solid */
    }
    /* 1. Force the dropdown container to take full width */
    .dropdown {
        position: static;
        box-shadow: none;
        display: none;
        background-color: #f9f9f9;
        
        /* ADD THESE LINES TO FIX THE WIDTH: */
        width: 100% !important;      /* Overrides the 200px !important */
        min-width: 100% !important;  /* Ensures it stretches fully */
        padding: 0;                  /* Reset padding to align perfectly */
    }
    
    /* 2. Force the list items (li) inside to take full width */
    .dropdown li {
        width: 100% !important;      /* Overrides the 5em fixed width */
        box-sizing: border-box;      /* Keeps padding inside the width */
        margin: 0;                   /* Remove margins that might cause gaps */
        text-align: center;          /* Keep text centered */
        background-color: #e6e6e6;   /* Optional: slight darker grey to distinguish */
    }

    /* 3. Ensure the parent list item takes full width too */
    .menu li.services {
        width: 100%;
        padding: 0; /* Remove padding here so dropdown touches edges */
    }

    /* 4. Style the main link to look good */
    .menu li.services > a {
        display: block;
        padding: 15px 14px; /* Move the padding to the link tag instead */
        width: 100%;
        box-sizing: border-box;
    }

    .services:hover .dropdown {
        display: block;
        /* Ensure hover state doesn't shrink it back */
        width: 100% !important; 
        min-width: 100% !important;
    }
}

/* ===================================
TABLET RESPONSIVENESS (1024px and below)
=================================== */
@media only screen and (max-width: 1024px) {
.login-page-wrapper {
    flex-direction: column;
    gap: 30px;
    padding: 20px 10px;
}

.login-image-left {
    border-right: none;
    border-bottom: 2px solid #ddd;
    padding: 0 0 30px 0;
    width: 100%;
}

.login-image-left img {
    max-width: 150px;
}

.authentication-container {
    min-width: unset;
    width: 90%;
    max-width: 450px;
    margin: 0 auto;
    padding: 20px;
    box-shadow: none;
}

.authentication-container img {
    max-width: 150px;
    height: auto;
}

.authentication-form input[type="email"],
.authentication-form input[type="password"],
.authentication-form input[type="submit"] {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    padding: 12px;
}
}

/* ===================================
MOBILE RESPONSIVENESS (430px and below)
=================================== */
@media only screen and (max-width: 430px) {
body {
    padding-top: 60px;
}

.login-page-wrapper {
    flex-direction: column;
    gap: 20px;
    padding: 15px 10px;
    min-height: calc(100vh - 140px);
}

.login-image-left {
    border-bottom: 1px solid #ddd;
    padding: 0 0 20px 0;
    width: 100%;
}

.login-image-left img {
    max-width: 100px;
    width: 80%;
}

.authentication-container {
    min-width: unset;
    width: 95%;
    max-width: 100%;
    padding: 15px;
    margin: 0 auto;
}

.authentication-container img {
    max-width: 120px;
    width: 70%;
    margin: 0 auto 15px;
}

.authentication-container h2 {
    font-size: 22px;
    margin: 15px 0;
}

.authentication-form input[type="email"],
.authentication-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    padding: 14px 12px;
    margin-bottom: 12px;
}

.password-input-container {
    position: relative;
    width: 100%;
}

.password-input-container input {
    width: 100%;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
}

.authentication-form input[type="submit"] {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    padding: 14px;
    margin-top: 10px;
}

.authentication-form a {
    display: block;
    font-size: 14px;
    margin: 10px 0;
    text-align: center;
}

.error-input {
    font-size: 13px;
    display: block;
    margin: 5px 0;
}


}

/* ===================================
EXTRA SMALL MOBILE (360px and below)
=================================== */
@media only screen and (max-width: 360px) {
body {
    padding-top: 55px;
}

.login-page-wrapper {
    gap: 15px;
    padding: 10px 5px;
}

.login-image-left img {
    max-width: 80px;
}

.authentication-container {
    width: 98%;
    padding: 12px;
}

.authentication-container img {
    max-width: 100px;
}

.authentication-container h2 {
    font-size: 20px;
    margin: 12px 0;
}

.authentication-form input[type="email"],
.authentication-form input[type="password"],
.authentication-form input[type="submit"] {
    font-size: 14px;
    padding: 12px 10px;
}

.authentication-form a {
    font-size: 13px;
    margin: 8px 0;
}

.footer {
    margin-top: 10px;
    font-size: 10px;
    padding: 10px 5px;
}
}