﻿/* ===== Base Layout ===== */
body {
    background: #000000; /* remove the space in 'back ground' */
    font-family: "Poppins", "Segoe UI", sans-serif;
    color: #fff;
    margin: 0;
    padding: 0;
    height: 100vh; /* ensures full height for flex centering */
    overflow-x: hidden; /* prevent horizontal scroll */
}


.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #000000);
}

.login-card {
    background: #000000;
    width: 100%;
    max-width: 400px;
    border-radius: 18px;
    padding: 35px 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}

    .login-header img {
        width: auto;
        height: 50px;
        object-fit: cover;
        margin-bottom: 10px;
   
    }

    .login-header h2 {
        font-size: 1.6rem;
        font-weight: 600;
        color: #fff;
        letter-spacing: 0.5px;
    }

/* ===== Container ===== */
.login-form {
    max-width: 380px;
    margin: 60px auto;
    background: #0d0d0d;
    padding: 40px 35px;
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
}

    /* ===== Labels ===== */
    .login-form label {
        display: block;
        margin-bottom: 6px;
        font-weight: 500;
        color: #ccc;
    }

/* ===== Input Fields ===== */
.form-control {
    width: 100%;
    background: #111111;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;

}

    .form-control:focus {
        border-color: #0d6efd;
        background: #1a1a1a;
    }

/* ===== Checkbox ===== */
.form-group {
    margin-bottom: 20px;
}

    .form-group input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 18px;
        height: 18px;
        border: 2px solid #555;
        border-radius: 4px;
        background: #111;
        cursor: pointer;
        position: relative;
        transition: all 0.25s ease;
        vertical-align: middle;
        margin-right: 6px;
    }

        .form-group input[type="checkbox"]:checked {
            background-color: #0d6efd;
            border-color: #0d6efd;
        }

        .form-group input[type="checkbox"]::after {
            content: "";
            position: absolute;
            top: 2px;
            left: 6px;
            width: 4px;
            height: 8px;
            border: solid #fff;
            border-width: 0 2px 2px 0;
            opacity: 0;
            transform: rotate(45deg);
            transition: opacity 0.2s ease;
        }

        .form-group input[type="checkbox"]:checked::after {
            opacity: 1;
        }

    /* Label for checkbox */
    .form-group label {
        color: #aaa;
        font-size: 0.9rem;
        margin-bottom: 6px;
        
        user-select: none;
    }

     

/* ===== Button ===== */
.btn-login {
    width: 100%;
    background: linear-gradient(180deg, #1E1E1E, #000000);
   /* background: linear-gradient(135deg, #0d6efd, #0a58ca);*/
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    /*box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);*/
}

    .btn-login:hover {
        background: linear-gradient(135deg, #0a58ca, #084298);
        box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
    }

.form-group {
    margin-bottom: 20px;
}


/* ===== Button ===== */
.btn-login {
    width: 100%;
    background: linear-gradient(180deg, #1E1E1E, #000000);
    border: 1px solid #2A2A2A;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .btn-login::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
        transform: scale(0);
        transition: transform 0.4s ease;
    }

    .btn-login:hover::before {
        transform: scale(1);
    }

    .btn-login:hover {
        border-color: #555;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.08);
        transform: translateY(-1px);
    }


.login-footer {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    margin-top: auto; /* push footer to bottom */
    padding: 15px 0;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

/* ===== Mobile Optimization ===== */
@media (max-width: 480px) {
    .login-card {
        padding: 25px 20px;
    }

    .login-header h2 {
        font-size: 1.4rem;
    }
}















/* ===== Page Loader ===== */
#pageLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

    #pageLoader.hide {
        opacity: 0;
        visibility: hidden;
    }

.loader-circle {
    width: 50px;
    height: 50px;
    border: 4px solid #1E1E1E;
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}
