﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e5799, #207cca, #2989d8, #1e5799);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding: 20px;
}



@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.logo {
    width: 180px;
    height: 180px;
    margin-bottom: 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
    padding: 15px;
}

    .logo img {
        max-width: 100%;
        max-height: 100%;
    }

.login-box {
    background: rgba(255, 255, 255, 0.95);
    width: 100%;
    border-radius: 16px;
    padding: 40px 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.4s ease;
    animation: fadeIn 0.8s ease-out;
}

    .login-box:hover {
        transform: translateY(-5px);
    }

    .login-box:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(90deg, #0079C6, #ff9200);
        animation: borderGrow 0.8s ease-out;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes borderGrow {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

h1 {
    color: #0079C6;
    font-weight: bold;
    margin-bottom: 32px;
    font-size: 32px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

    h1:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: linear-gradient(to right, #0079C6, #ff9200);
        border-radius: 2px;
    }

.form-group {
    position: relative;
    margin-bottom: 30px;
    z-index: 1;
}

    .form-group label {
        position: absolute;
        top: 14px;
        left: 15px;
        color: #777;
        font-size: 16px;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .form-group input {
        width: 100%;
        height: 50px;
        padding: 10px 15px;
        font-size: 16px;
        border: 2px solid #e1e5eb;
        border-radius: 8px;
        background: transparent;
        transition: all 0.3s ease;
        outline: none;
    }

        .form-group input:focus,
        .form-group input:valid {
            border-color: #0079C6;
            box-shadow: 0 0 0 4px rgba(0, 121, 198, 0.15);
        }

            .form-group input:focus + label,
            .form-group input:valid + label {
                top: -22px;
                left: 0;
                font-size: 14px;
                color: #0079C6;
                font-weight: bold;
            }

.password-group {
    position: relative;
}

.password-input {
    position: relative;
}

    .password-input label {
        position: absolute;
        top: 14px;
        left: 15px;
        color: #777;
        font-size: 16px;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .password-input input:focus + label,
    .password-input input:valid + label {
        top: -22px;
        left: 0;
        font-size: 14px;
        color: #0079C6;
        font-weight: bold;
    }

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    cursor: pointer;
    transition: color 0.3s;
}

    .toggle-password:hover {
        color: #0079C6;
    }

.remember-me {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

    .remember-me input {
        margin-right: 10px;
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

    .remember-me label {
        color: #555;
        font-size: 15px;
        cursor: pointer;
    }

.btn-login {
    background-color: #0274be;
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 25px 0 5px;
    font-weight: bold;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .btn-login:after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0%;
        height: 100%;
        background: #ff9200;
        transition: all 0.4s ease;
        z-index: -1;
    }

    .btn-login:hover:after {
        width: 100%;
    }

    .btn-login:hover {
        letter-spacing: 1px;
    }

    .btn-login i {
        transition: transform 0.4s ease;
    }

    .btn-login:hover i {
        transform: translateX(5px);
    }

.form-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

    .form-links a {
        color: #4175fc;
        text-decoration: none;
        font-weight: 600;
        position: relative;
        transition: all 0.3s ease;
    }

        .form-links a:after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: #4175fc;
            transition: width 0.3s ease;
        }

        .form-links a:hover:after {
            width: 100%;
        }

        .form-links a:hover {
            color: #ff9200;
        }

.field-validation-valid {
    display: none;
}

.field-validation-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }

    h1 {
        font-size: 26px;
    }

    .form-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* ==================== ##Preloader ==================== */
#preloader-wrapper {
    background-color: #fdfaf8a3;
    z-index: 10000;
    position: fixed;
    width: 100%;
    height: 100%;
}

.preloader-container {
    position: relative;
    width: 82px;
    height: 82px;
    left: 50%;
    top: 50%;
    margin-top: -41px;
    margin-left: -41px;
}

    .preloader-container > div {
        position: relative;
        width: 25px;
        height: 25px;
        margin: 1px;
        float: left;
        background: tomato;
        -webkit-transform: scale(0);
        -moz-transform: scale(0);
        -ms-transform: scale(0);
        -o-transform: scale(0);
        transform: scale(0);
        -webkit-transform-origin: center center;
        -moz-transform-origin: center center;
        -ms-transform-origin: center center;
        -o-transform-origin: center center;
        transform-origin: center center;
        -webkit-animation: loader 2s infinite linear;
        -moz-animation: loader 2s infinite linear;
        -o-animation: loader 2s infinite linear;
        animation: loader 2s infinite linear;
    }

        .preloader-container > div:nth-of-type(1), .preloader-container > div:nth-of-type(5), .preloader-container > div:nth-of-type(9) {
            -webkit-animation-delay: 0.4s;
            -moz-animation-delay: 0.4s;
            -o-animation-delay: 0.4s;
            animation-delay: 0.4s;
        }

        .preloader-container > div:nth-of-type(4), .preloader-container > div:nth-of-type(8) {
            -webkit-animation-delay: 0.2s;
            -moz-animation-delay: 0.2s;
            -o-animation-delay: 0.2s;
            animation-delay: 0.2s;
        }

        .preloader-container > div:nth-of-type(2), .preloader-container > div:nth-of-type(6) {
            -webkit-animation-delay: 0.6s;
            -moz-animation-delay: 0.6s;
            -o-animation-delay: 0.6s;
            animation-delay: 0.6s;
        }

        .preloader-container > div:nth-of-type(3) {
            -webkit-animation-delay: 0.8s;
            -moz-animation-delay: 0.8s;
            -o-animation-delay: 0.8s;
            animation-delay: 0.8s;
        }

@-webkit-keyframes loader {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    40% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    80% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }
}

@-moz-keyframes loader {
    0% {
        -moz-transform: scale(0);
        transform: scale(0);
    }

    40% {
        -moz-transform: scale(1);
        transform: scale(1);
    }

    80% {
        -moz-transform: scale(1);
        transform: scale(1);
    }

    100% {
        -moz-transform: scale(0);
        transform: scale(0);
    }
}

@-o-keyframes loader {
    0% {
        -o-transform: scale(0);
        transform: scale(0);
    }

    40% {
        -o-transform: scale(1);
        transform: scale(1);
    }

    80% {
        -o-transform: scale(1);
        transform: scale(1);
    }

    100% {
        -o-transform: scale(0);
        transform: scale(0);
    }
}

@keyframes loader {
    0% {
        -webkit-transform: scale(0);
        -moz-transform: scale(0);
        -o-transform: scale(0);
        transform: scale(0);
    }

    40% {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }

    80% {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }

    100% {
        -webkit-transform: scale(0);
        -moz-transform: scale(0);
        -o-transform: scale(0);
        transform: scale(0);
    }
}

/* ==================== ##Scroll Up ==================== */


/* Import Lato font with required weights */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

/* Base styles for the entire document */
body {
    font-family: 'Lato', sans-serif;
    color: #333; /* Default text color */
    line-height: 1.6;
}

/* Heading styles */
h1 {
    font-family: 'Lato', sans-serif;
    font-weight: 700; /* Bold */
    color: #0079C6;
    font-size: 32px;
    margin-bottom: 32px;
}

/* Paragraph styles */
p {
    font-family: 'Lato', sans-serif;
    font-weight: 400; /* Regular */
    color: #555;
    font-size: 16px;
}

/* Form input and label styles */
.form-group input {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: #333;
    font-size: 16px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    transition: all 0.3s ease;
}

    .form-group input:focus {
        border-color: #0079C6;
        box-shadow: 0 0 0 3px rgba(0, 121, 198, 0.1);
        outline: none;
    }

/* Label styles */
.form-group label {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: #666;
    font-size: 16px;
    margin-bottom: 8px;
    display: block;
    transition: all 0.3s ease;
}

/* Floating label effect */
.form-group.focused label {
    transform: translateY(-37px);
    font-size: 14px;
    color: #0079C6;
    font-weight: 700;
    left:0;
}

/* Button styles */
.btn-login {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* Error message styles */
.field-validation-error {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
}

