﻿body {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    background: transparent !important;
}

/* Add this to your login.css */

.form-floating-group {
    position: relative;
}

#UserID + label,
#Password + label {
    position: absolute;
    left: 1.1rem;
    top: 1.1rem;
    color: #ed47ff;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(.4,2,.6,1);
    background: transparent;
    right: auto;
    opacity: 1;
    text-align: left;
}

/* Move label to top right with 50% transparency while typing or focused */
#UserID:focus + label,
#UserID:not(:placeholder-shown) + label,
#Password:focus + label,
#Password:not(:placeholder-shown) + label {
    left: auto;
    right: 1.1rem;
    top: 0.2rem;
    text-align: right;
    color: #6a82fb;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.7);
    padding: 0 0.2rem;
    border-radius: 0.3rem;
    width: auto;
    opacity: 0.5;
}

#Password + label {
    position: absolute;
    left: 1.1rem;
    top: 1.1rem;
    color: #888;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(.4,2,.6,1);
    background: transparent;
    right: auto;
}

/* When input is focused or has value, move label to the right */
#Password:focus + label,
#Password:not(:placeholder-shown) + label {
    left: auto;
    right: 1.1rem;
    top: 1.1rem;
    text-align: right;
    color: #6a82fb;
    font-size: 1rem;
    background: rgba(255,255,255,0.7);
    padding: 0 0.2rem;
    border-radius: 0.3rem;
    width: auto;
}

/* When input is focused or has value, move label to the right */
#UserID:focus + label,
#UserID:not(:placeholder-shown) + label {
    left: auto;
    right: 1.1rem;
    top: 1.1rem;
    text-align: right;
    color: #6a82fb;
    font-size: 1rem;
    background: rgba(255,255,255,0.7);
    padding: 0 0.2rem;
    border-radius: 0.3rem;
    width: auto;
}

.login-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 140vh;
    z-index: 0;
    background-size: cover;
    background-position: center center;
    animation: pan-bg 40s linear infinite alternate;
    transition: background-image 1s;
    filter: blur(0.8px) brightness(0.85);
}

@keyframes pan-bg {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}


@keyframes pan-bg {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.login-container {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.login-glass {
    background: rgba(255,255,255,0.18);
    border-radius: 2rem;
    box-shadow: 0 8px 32px 0 rgba(31,38,135,0.37);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 0px solid;
    border-image: linear-gradient(120deg, #ffb347 0%, #1bc47d 50%, #6a82fb 100%);
    border-image-slice: 1;
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    max-width: 400px;
    width: 95vw;
    margin: 2rem auto;
    transition: box-shadow 0.3s;
    z-index: 2;
    position: relative;
    animation: fadeIn 1.2s cubic-bezier(.39,.575,.56,1) both;
}

.floating {
    animation: floatY 3.5s ease-in-out infinite;
}

@keyframes floatY {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-18px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-icon {
    font-size: 2.5rem;
    color: #6a82fb;
    margin-bottom: 0.5rem;
    animation: bounceIn 1.2s;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    60% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

.brand-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #222;
    text-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

    .brand-title.text-success {
        color: #1bc47d;
    }

.mgmt-id {
    font-size: 1.1rem;
    color: #fff;
    opacity: 0.7;
    margin-left: 0.5rem;
}

.app-name {
    font-size: 1.1rem;
    color: #555;
    margin-top: 0.2rem;
    letter-spacing: 0.5px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.form-floating-group {
    position: relative;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 1.1rem 1rem 0.5rem 1rem;
    border-radius: 0.8rem;
    border: 1.5px solid #e0e0e0;
    background: rgba(255,255,255,0.45);
    color: #ffb347;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(31,38,135,0.07);
}

    .form-control:focus {
        border: 1.5px solid #6a82fb;
        box-shadow: 0 4px 16px rgba(106,130,251,0.13);
        background: rgba(255,255,255,0.65);
    }

.form-floating-group label {
    position: absolute;
    top: 1.1rem;
    left: 1.1rem;
    color: #ffb347;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.2s;
    background: transparent;
}

.form-control:focus + label,
.form-control:not(:placeholder-shown) + label {
    top: 0.2rem;
    left: 1rem;
    font-size: 0.85rem;
    color: #6a82fb;
    background: rgba(255,255,255,0.7);
    padding: 0 0.2rem;
    border-radius: 0.3rem;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.98rem;
    color: #666;
    margin-bottom: 0.5rem;
}

    .remember-row input[type="checkbox"] {
        accent-color: #1bc47d;
    }

.btn-signin {
    width: 100%;
    padding: 0.85rem 0;
    border-radius: 0.8rem;
    border: none;
    background: linear-gradient(90deg, #6a82fb 0%, #1bc47d 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(31,38,135,0.13);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    letter-spacing: 0.5px;
    outline: none;
    animation: pulseBtn 2.5s infinite;
}

@keyframes pulseBtn {
    0% {
        box-shadow: 0 0 0 0 rgba(106,130,251,0.2);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(106,130,251,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(106,130,251,0);
    }
}

.btn-signin:hover, .btn-signin:focus {
    background: linear-gradient(90deg, #1bc47d 0%, #6a82fb 100%);
    box-shadow: 0 4px 16px rgba(31,38,135,0.18);
    transform: translateY(-2px) scale(1.03);
}

.forgot-link, .home-link {
    text-align: center;
    margin-top: 1.1rem;
}

    .forgot-link a, .home-link a {
        color: #6a82fb;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
    }

        .forgot-link a:hover, .home-link a:hover {
            color: #1bc47d;
            text-decoration: underline;
        }

.info-section {
    margin-top: 1.2rem;
    text-align: center;
    font-size: 0.98rem;
}

.alert-msg {
    color: #e74c3c;
    margin: 0.5rem 0;
}

.marquee-info {
    margin-top: 0.7rem;
    color: #333;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.3);
    border-radius: 0.5rem;
    padding: 0.2rem 0.5rem;
}

@media (max-width: 600px) {
    .login-glass {
        padding: 1.2rem 0.5rem 1rem 0.5rem;
        max-width: 98vw;
    }

    .brand-title {
        font-size: 1.3rem;
    }

    .app-name {
        font-size: 0.98rem;
    }
}

</style >
