﻿.login {
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
}

.inner {
   width: 400px;
    height: 400px;
    top: 25%;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid black;
    position: relative;
    background-color: lightgray;
    /*background: url("img/logbackground.png");*/
}

    .inner input {
        width: 100%;
    }

        .inner input[type=submit] {
            margin-top: 20px;
        }

body {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    height: 100vh;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.branchgrid-container {
    margin-left: auto;
    margin-right: auto;
    display: grid;
    gap: 10px;
    grid-template-columns: auto auto;
    padding: 10px;
    background-color: whitesmoke;
    /*background-image: url(../images/bg.jpg);*/
    background-repeat: repeat;
}



.branchgrid-item {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.8);
    padding: 20px;
    font-size: 30px;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

    .branchgrid-item:hover {
        background-color: lightblue;
    }



.login-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 18px;
    overflow: hidden;
}

.lock-icon {
    transition: opacity 0.4s ease, transform 0.4s ease;
    font-size: 20px;
    display: inline-block;
    width: 20px; /* reserve space so button size doesn't shift */
     
    text-align: center;
}

/* Locked shown by default */
.locked {
    opacity: 1;
    transform: translateY(0);
    position: absolute;
    left: 15px;
}

/* Unlocked hidden by default */
.unlocked {
    opacity: 0;
    transform: translateY(10px);
    position: absolute;
    left: 15px;
}

/* On hover: swap icons */
.login-button:hover .locked {
    opacity: 0;
    transform: translateY(-10px);
}

.login-button:hover .unlocked {
    opacity: 1;
    transform: translateY(0);
}


@keyframes unlockAnimation {
    0% {
        opacity: 1;
        transform: translateY(0);
        content: '🔒';
    }

    80% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        content: '🔓';
    }
}

.login-button:hover .lock-icon {
    animation: unlockAnimation 0.6s forwards;
}
