﻿/* Reset styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #42a5f5, #90caf9);
    padding-top: 100px;
}

/* Top bar styling */
.top-bar {
    width: 100%;
    background: linear-gradient(to right, #42a5f5, #90caf9);
    padding: 0;
    padding-left: 20px; /* Adjust the left padding to fit your content */
    padding-top: 15px; /* Reduce the top padding to make the bar shorter */
    padding-bottom: 15px; /* Add some padding at the bottom for better alignment */
    text-align: left;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000; /* Keep it on top */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Adds a soft shadow */
}

    /* Optional: If you want to adjust the logo size */
    .top-bar h1 {
        font-size: 24px; /* Reduce the font size */
        margin: 0; /* Remove any margin */
        color: white;
    }

/* Logo container styling */
.logo-container {
    display: inline-block;
}

/* Logo image styling */
.logo {
    height: 40px; /* Adjust based on your logo size */
    max-width: 100%; /* Ensure it fits well */
}

/* Add some padding to the body to prevent content from being hidden under the fixed top bar */


/* Main Wrapper */
.wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Moves it towards the top */
    height: 100vh; /* Full height of the viewport */
/* Moves it slightly down from the top */
}

/* Glassmorphic Login Form */
.container {
    width: 350px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 2;
    position: relative;
    /* Move form slightly up */
    transform: translateY(-30px);
}

    .container h1 {
        font-size: 36px;
        color: white;
        font-weight: 300;
    }

/* Animated Input Fields */
form input {
    appearance: none;
    outline: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.2);
    width: 250px;
    border-radius: 3px;
    padding: 10px 15px;
    margin: 0 auto 10px auto;
    display: block;
    text-align: center;
    font-size: 18px;
    color: white;
    -webkit-transition-duration: 0.25s;
    transition-duration: 0.25s;
    font-weight: 300;
}

    form input:hover {
        background-color: rgba(255, 255, 255, 0.4);
    }

    form input:focus {
        background-color: white;
/*        width: 300px;*/
        color: black;
    }

/* Button */
.login-btn {
    appearance: none;
    outline: 0;
    background-color: white;
    border: 0;
    padding: 10px 15px;
    color: #42a5f5;
    font-weight: 500;
    border-radius: 5px;
    width: 250px;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s;
}

    .login-btn:hover {
        background-color: #f5f7f9;
    }

/* Error Message */
.text-danger {
    color: #C80036 !important;
    font-weight: 400;
}

/* Forgot Password Link */
a#forgot-password {
    color: white;
    font-weight: 500;
    text-decoration: none;
}

    a#forgot-password:hover {
        text-decoration: underline;
    }

/* Background Animation */
.bg-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

    .bg-bubbles li {
        position: absolute;
        list-style: none;
        display: block;
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.15);
        bottom: -160px;
        animation: square 25s infinite;
        transition-timing-function: linear;
    }

        .bg-bubbles li:nth-child(1) {
            left: 10%;
        }

        .bg-bubbles li:nth-child(2) {
            left: 20%;
            width: 80px;
            height: 80px;
            animation-delay: 2s;
            animation-duration: 17s;
        }

        .bg-bubbles li:nth-child(3) {
            left: 25%;
            animation-delay: 4s;
        }

        .bg-bubbles li:nth-child(4) {
            left: 40%;
            width: 60px;
            height: 60px;
            animation-duration: 22s;
            background-color: rgba(255, 255, 255, 0.25);
        }

        .bg-bubbles li:nth-child(5) {
            left: 70%;
        }

        .bg-bubbles li:nth-child(6) {
            left: 80%;
            width: 120px;
            height: 120px;
            animation-delay: 3s;
            background-color: rgba(255, 255, 255, 0.2);
        }

        .bg-bubbles li:nth-child(7) {
            left: 32%;
            width: 160px;
            height: 160px;
            animation-delay: 7s;
        }

        .bg-bubbles li:nth-child(8) {
            left: 55%;
            width: 20px;
            height: 20px;
            animation-delay: 15s;
            animation-duration: 40s;
        }

        .bg-bubbles li:nth-child(9) {
            left: 25%;
            width: 10px;
            height: 10px;
            animation-delay: 2s;
            animation-duration: 40s;
            background-color: rgba(255, 255, 255, 0.3);
        }

        .bg-bubbles li:nth-child(10) {
            left: 90%;
            width: 160px;
            height: 160px;
            animation-delay: 11s;
        }

@keyframes square {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-700px) rotate(600deg);
    }
}
::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.7);
}

::-moz-placeholder {
    color: rgba(255, 255, 255, 0.7);
}

:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.7);
}

:-moz-placeholder {
    color: rgba(255, 255, 255, 0.7);
}



/* Spinner Styles */


/* Spinner Styles */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.password-container {
    position: relative;
    width: 300px;
    margin: auto;
}

    .password-container input {
        width: 250px;
        padding-right: 40px;
        transition: width 0.25s ease-in-out;
    }

        .password-container input:focus {
/*            width: 300px;*/
        }

.toggle-password {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 15px;
    color: white; /* Default color */
    transition: color 0.2s ease-in-out;
}


/* Move icon when input is focused */
.password-container input:focus ~ .toggle-password {
    right: 18px;
    color: black; /* Change to dark when focused */
/*    transition: right 0.3s ease, color 0.3s ease; */
}

