﻿/* === Modal Background === */
#loginModal .modal-dialog {
    max-width: 450px;
}

#loginModal .modal-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    overflow: hidden;
    border: none;
    position: relative;
}

    #loginModal .modal-content::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 20px;
        padding: 2px;
        background: linear-gradient(135deg, #0072ff, #00c6ff, #4facfe, #00f2fe);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }

/* === Header & Title === */
#loginModal h1 {
    background: rgb(39, 245, 101);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* === Inputs === */
#loginModal input[type="text"],
#loginModal input[type="password"] {
    border: none;
    border-bottom: 2px solid #ccc;
    border-radius: 10px;
    background: transparent;
    padding: 10px;
    width: 100%;
    font-size: 16px;
    transition: all 0.3s ease;
}

#loginModal input:focus {
    outline: none;
    border-color: #0072ff;
    box-shadow: 0 1px 0 0 #0072ff;
}

#loginModal label {
    color: #555;
    transition: 0.3s ease all;
}

#loginModal .peer:focus ~ label,
#loginModal .peer:not(:placeholder-shown) ~ label {
    color: #0072ff;
}

/* === Button === */
#loginModal #btnLogin {
    background: #27F565;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    padding: 12px;
    margin-top: 10px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
}

    #loginModal #btnLogin:hover {
        background: linear-gradient(135deg, #0062e6, #00a0f0);
        box-shadow: 0 6px 20px rgba(0, 114, 255, 0.4);
    }

/* === Extra Glow Animation === */
@keyframes glowPulse {
    0% {
        box-shadow: 0 0 10px rgba(0, 114, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 114, 255, 0.6);
    }

    100% {
        box-shadow: 0 0 10px rgba(0, 114, 255, 0.4);
    }
}

#loginModal .modal-content:hover::before {
    animation: glowPulse 2.5s infinite;
}

/* === Responsive === */
@media (max-width: 576px) {
    #loginModal .modal-dialog {
        margin: 1rem;
    }

    #loginModal .modal-content {
        border-radius: 15px;
    }

    #loginModal h1 {
        font-size: 1.5rem;
    }
}


/* === Footer Link (below submit button) === */
#loginModal .modal-body > a {
    display: block;
    text-align: center;
    margin: 15px auto 10px; /* space above & below the link */
    color: #0072ff;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}


#loginModal .modal-body{
    background-color: #fff !important;
    border-radius: 20px;
}
#loginModal .modal-body > a:hover {
    color: #00c6ff;
    text-decoration: underline;
}

    #loginModal .modal-body > a::before {
        content: "";
        display: block;
        height: 1px;
        width: 60%;
        background-color: #fff !important;
        margin: 20px auto 12px;
    }


/* === Loader Spinner === */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

    .btn-loading::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin-top: -10px;
        margin-left: -10px;
        border: 2px solid white;
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}