﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; 
    background: url("/Images/background.png") no-repeat center center;
    background-size: cover;
}

body {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

.login-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    width: 90%;
    max-width: 650px;
    min-width: 650px;
    padding: 60px 50px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInSlide 1.2s ease-out forwards;
}

.logo-image {
    width: 100%;
    max-width: 520px;
    height: auto;
    margin-bottom: 30px;
}

.form-content {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.input-group, .input-groupError, .links-group, .button-group {
    width: 420px;
}
.message-card {
    background: rgb(243, 242, 242);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    width: 100%;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    text-align: center;
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border-radius: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    outline: none;
}

.links-group {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    margin-bottom: 25px;
    font-size: 13px;
}

.links-group a {
    color: #fff;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.links-group a.primary-link {
    font-weight: bold;
    color: #1c52b3;
    text-shadow: none;
}

/* --- RESPONSIVE DESIGN (Media Queries) --- */
@media (max-width: 768px) {
    .login-card {
        width: 85%;
        padding: 40px 30px; 
    }

    .logo-image {
        max-width: 280px; 
    }
}

@media (max-width: 480px) {
    .login-card {
        width: 95%; 
        padding: 30px 20px;
        border-radius: 15px;
    }

    .logo-image {
        max-width: 220px;
        margin-bottom: 20px;
    }

    .input-group {
        width: 100%; 
    }

    .links-group {
        flex-direction: column; 
        align-items: center;
        gap: 10px;
        font-size: 12px;
    }
}

/* --- ANIMATION --- */
@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateY(30px); 
        filter: blur(10px); 
    }

    100% {
        opacity: 1;
        transform: translateY(0); 
        filter: blur(0);
    }
}

.login-card {
    animation: fadeInSlide 1.2s ease-out forwards;
}

.logo-container, .login-form {
    animation: fadeInSlide 1.5s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

/* Buttons */
.btn {
    width: 30%; 
    min-width: 150px; 
    padding: 10px 25px !important;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block; 
    border: 1.5px solid #1C6FCE !important;
    outline: none;
    color: #1C6FCE;
    Background: #F0F7FF;
}

.btn:hover {
    background: #1c52b3;
    color: #fff;
}

.button-group {
    display: flex;
    justify-content: center; 
    gap: 10px; 
    width: 100%;
    margin-top: 20px;
}

#btnUpdate {
    background: #fff;
    border: 1.5px solid #1C6FCE !important;
    outline: none;
    color: #1C6FCE;
    Background: #F0F7FF;
}

#btnCancel {
    background: #FFEEF3;
    color: #D4254E;
    border: 1.5px solid #D4254E !important;
}

#btnUpdate:hover {
    background: #1c52b3;
    color: #fff;
}

#btnCancel:hover {
    color: #fff;
    background: #D4254E;
}

@media (max-width: 400px) {
    .button-group {
        flex-direction: column;
    }
}


#lblErrors, #valErrors, #liErrors {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 13px;
    color: #d4254e !important;
    margin-top: 5px;
    margin-bottom: 10px;
    padding: 0 5px;
    font-weight: 600;
}

.input-groupError {
    width: 100%;
    max-width: 520px; 
    text-align: left;
    display: flex; 
    justify-content: flex-start;
}

#divOKMessage, #okMessage {
    display: block;
    font-size: 12px;
    color: #2bd065 !important;
    margin-top: 10px;
    background: rgba(0,0,0,0.4);
    border-radius: 10px;
    padding: 8px;
    font-weight: 600;
}
.messageOK-card {
    background: rgb(243, 242, 242); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    width: 100%;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 10px rgba(0,0,0,0.3);
    text-align: center;
}

.validation-summary-style {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.3);
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 20px;
    color: #ff4d4d;
    font-size: 13px;
    text-align: left;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px auto;
}

#valErrors ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#valErrors li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

#valErrors li::before {
    content: "\f06a"; 
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #D4254E;
    font-size: 12px;
}

#liErrors:has(#lblErrors:empty) {
    display: none;
}

#liErrors::before {
    content: "\f06a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #D4254E;
    font-size: 12px;
}

#liErrors {
    position: relative;
    padding: 0 0 0 25px;
    margin-top: 0;
    margin-bottom: 8px;
    margin-left: 5px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    list-style: none;
}

