/* ===================================
    RESET & GLOBAL SETTINGS (Unchanged)
=================================== */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
}
:root {
    --bg: #222222;
    --card-background: #fff;
    --icon-1bg: #dbeafe;
    --icon-2bg: #f3e8ff;
    --icon-3bg: #dcfce7;
    --icon-1: #3770ed;
    --icon-2: #6e0acb;
    --icon-3: #00742a;
    --primary-bg: #FF6D1F;
    --profile-bg: #BBDCE5;
    --hover: #f9f9f9;
    --text: #000;
    --button-bg: #000;
    --button-text: #fff;
    --dark-text: #fff;
    --search-text: #fff;
    --grad-blue: linear-gradient(135deg, #4A6CF7, #3B56C5);
    --grad-purple: linear-gradient(135deg, #A05DF5, #8643E6);
    --grad-green: linear-gradient(135deg, #2EC478, #1E9E5C);
    --grad-orange: linear-gradient(135deg, #FF9E43, #FF6A00);
    --grad-red: linear-gradient(135deg, #FF5C5C, #D63A3A);
    --grad-yellow: linear-gradient(135deg, #FFCA3A, #FFB302);
    scroll-behavior: smooth;
}

body {
    background: url('../images/bg.jpg') center/cover no-repeat;
    color: var(--dark-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
}

header{
    width: 100%;
    position: sticky;
    z-index: 1000;
    top: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 10px 0;
}
header .header-section{
    width: 90%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-radius: 12px;
    align-items: center;
    box-shadow: 0 4px 10px rgba(235, 95, 0, 0.4);
    padding: 15px;
    background: url(../images/header-bg.jpg);
}

/* NAVIGATION - DESKTOP STYLES */
.nav-list { /* Changed from nav ul */
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-list li { /* Changed from nav ul li */
    list-style: none;
}

.nav-list a { /* Changed from nav ul a */
    text-decoration: none;
    color: var(--search-text);
    font-size: 18px;
    font-weight: 500;
    transition: 0.3s ease;
}

.nav-list a:hover { /* Changed from nav ul a:hover */
    border-bottom: 3px solid #fff;
    padding-bottom: 3px;
}

/* MOBILE MENU ICON - Default hidden on desktop */
.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--search-text);
}


/* HEADER BUTTON */
.btn button {
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    background: var(--button-bg);
    color: var(--button-text);
    cursor: pointer;
    transition: 0.3s;
}

.btn button:hover {
    opacity: 0.8;
}

/* ===================================
    MOBILE RESPONSIVE STYLES
=================================== */

@media (max-width: 992px) { /* Adjust breakpoint as needed */

    /* Show the mobile menu icon */
    .menu-toggle {
        display: block;
        order: 3; /* To position it visually where needed */
    }

    /* Hide the desktop navigation */
    .nav-menu {
        /* Mobile Menu Setup: Off-canvas sliding from the left */
        position: fixed;
        top: 0;
        left: -300px; /* Hidden position: slide it off-screen to the left */
        width: 250px; /* Width of the menu */
        height: 100%;
        background: rgba(34, 34, 34, 0.95); /* Dark background with slight transparency */
        backdrop-filter: blur(5px);
        z-index: 999; /* Below the header, above everything else */
        transition: left 0.4s ease-in-out;
        box-shadow: 2px 0 5px rgba(0,0,0,0.5);
    }

    /* Active state: when the menu is toggled */
    .nav-menu.active {
        left: 0; /* Visible position: slide it into view */
    }

    .nav-list {
        /* Reset flexbox for a vertical stacking */
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 20px; /* Space for the top */
        width: 100%;
    }

    .nav-list li {
        width: 100%; /* Full width list items */
        margin: 10px 0;
    }

    .nav-list a {
        display: block; /* Make the link fill the list item */
        padding: 10px 0;
        color: var(--dark-text); /* Ensure good contrast on the dark menu */
        border-bottom: none; /* Remove desktop hover border */
    }
    
    .nav-list a:hover {
        color: var(--primary-bg);
        border-bottom: none;
        padding-bottom: 10px;
    }
    
    /* Reposition the 'Get Started' button for mobile header consistency */
    header .header-section {
        /* Reorder elements for mobile view */
        /* Logo (1), Button (2), Toggle (3) - Navigation is fixed/off-canvas */
        justify-content: space-between;
    }
    
    .btn {
        order: 2; /* Position the button before the toggle */
    }
    
    .logo {
        order: 1;
    }
}
.l-con{
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.login-wrapper{
    width: 60%;
    background: #fff;
    height: auto;
    border-radius: 12px;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}
.img-bg{
    background: url(../images/header-bg.jpg) center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom-left-radius: 12px;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
}
.login-container {
    width: 100%;
    padding: 20px;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
form{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #000;
}
.login-card {
    padding: 25px;
    width: 100%;
}
form label{
    color: #000;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: #f3f3f3;
    padding: 10px;
    border-radius: 6px;
    gap: 10px;
}

.input-wrapper i {
    color: #555;
    font-size: 25px;
}

.input-wrapper input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.95em;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000000s ease-in-out 0s;
}
.attempts-warning {
    color: darkorange;
    font-weight: bold;
    margin-bottom: 10px;
}

 .captcha-row {
    display:flex;
    align-items:center;
    gap:8px;
    justify-content: space-between;
}

.captcha-img {
    height: 54px;
    border-radius: 6px;
    border: 1px solid #ddd;
    width:auto;
    display:block;
}

.captcha-refresh-btn, #captcha-refresh-btn {
            display:inline-flex;
            align-items:center;
            justify-content:center;
            width:40px;
            height:40px;
            border-radius:6px;
            border:1px solid #ccc;
            background:#fff;
            cursor:pointer;
            transition: transform 0.2s ease, box-shadow 0.15s ease;
            user-select:none;
        }

.captcha-refresh-btn.rotating, #captcha-refresh-btn.rotating {
            animation: rotate360 0.8s linear;
            pointer-events: none;
            opacity: 0.85;
        }
        @keyframes rotate360 {
            from { transform: rotate(0deg); }
            to   { transform: rotate(360deg); }
        }
        
        .disabled {
            opacity: 0.6;
            pointer-events: none;
        }

        /* small accessibility focus ring */
        .captcha-refresh-btn:focus {
            outline: 3px solid rgba(21,156,228,0.25);
            outline-offset: 2px;
        }
.remember-me {
    display: block;
    margin: 10px 0 15px;
    color: #000;
    font-size: 0.92em;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-bg);
    border: none;
    color: white;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.login-btn:hover {
    background: var(--button-bg);
}

.blocked-text {
    display: block;
    color: red;
    font-weight: bold;
    margin-bottom: 5px;
}

#countdown {
    font-size: 1.1em;
    font-weight: bold;
    color: #b30000;
}
.sign-up{
    display: flex;
    color: #000;
    gap: 5px;
}
.sign-up a{
    color: var(--primary-bg);
}
.terms{
    color: #000;
    display: flex;
    margin-top: 20px;
    justify-content: center;
}
.terms span{
    font-size: 14px;
    text-align: center;
}
@media (max-width: 768px) {

    .login-wrapper {
        width: 80%;
        height: auto;
        display: flex;
        flex-direction: column;   /* stack on top of each other */
        border-radius: 10px;
    }

    .img-bg {
        width: 100%;
        height: 200px;
        border-top-right-radius: 0px;
        border-bottom-left-radius: 0px;
    }

    .login-container {
        max-width: 100%;
        margin: 20px auto;
        padding: 15px;
    }

    .img-bg h1 {
        font-size: 2rem;
    }

    .img-bg p {
        font-size: 0.9rem;
    }


    .login-card {
        padding: 15px;
        width: 100%;
    }

    .captcha-row {
        gap: 6px;
    }

    .captcha-img {
        height: 45px;
    }

    .captcha-refresh-btn {
        width: 36px;
        height: 36px;
    }
}

   

/* EXTRA SMALL SCREENS */
@media (max-width: 480px) {

    .login-wrapper {
        grid-template-columns: 0.2fr 1fr;
        width: 98%;
    }

    .img-bg h1 {
        font-size: 2rem;
    }

    .img-bg p {
        font-size: 0.8rem;
    }

    .login-card {
        padding: 12px;
    }

    .input-wrapper {
        padding: 8px 10px;
    }

    .login-btn {
        padding: 10px;
    }
}








        /* ===================================
    SPACER SECTION
=================================== */
.spacer{
    height: 50px;
}
/* ===================================
    FOOTER
=================================== */
.footer {
    background: var(--bg);
    width: 100%;
    min-height: 40vh;
    padding: 40px 5%;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-section {
    flex: 1;
    min-width: 220px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: #fff;
}

.footer-section ul li {
    list-style: none;
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ddd;
    text-decoration: none;
    transition: 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary-bg);
}
/* small utilities used by footer */
.visually-hidden { position:absolute !important; height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }

.social-list { display:flex; gap:12px; padding:0; margin:8px 0 0 0; list-style:none; align-items:center; }
.social-list a { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:8px; background:rgba(255,255,255,0.03); color:inherit; text-decoration:none; transition:transform .15s ease, background .15s ease; }
.social-list a:hover { transform:translateY(-3px); background:rgba(255,255,255,0.06); }

.newsletter-form { margin-top:12px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.newsletter-input { padding:10px 12px; border-radius:8px; border:1px solid rgba(255,255,255,0.08); background:transparent; color:inherit; min-width:200px; flex:1 1 220px; }
.newsletter-btn { padding:10px 18px; border-radius:8px; border:none; background:var(--primary-bg); color:#fff; cursor:pointer; }

@media (max-width:768px){
  .newsletter-form { flex-direction:column; align-items:stretch; }
  .newsletter-input { width:100%; }
  .newsletter-btn { width:100%; }
}

/* ===================================
    COPYRIGHT BAR
=================================== */
.copyright {
    background: #1b1b1b;
    color: #fff;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    border-top: 1px solid #333;
}
