@font-face {
    font-family: 'Sage Text';
    src: url('/fonts/Sage_Text-Regular.woff2') format('woff2'), url('/fonts/Sage_Text-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Adelle Sans SAGE';
    src: url('/fonts/AdelleSansSAGE.eot');
    src: url('/fonts/AdelleSansSAGE.eot?#iefix') format('embedded-opentype'), url('/fonts/AdelleSansSAGE.woff2') format('woff2'), url('/fonts/AdelleSansSAGE.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

::-webkit-input-placeholder {
    font-style: italic;
    color: #A0AEC0;
}

::-moz-placeholder {
    font-style: italic;
    opacity: 1;
    color: #A0AEC0;
}

:-ms-input-placeholder {
    font-style: italic;
    opacity: 1;
    color: #A0AEC0;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Sage Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    background-image: url(images/BG9.JPG);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    position: relative;
}

.background-blur {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(0px);
    z-index: 0;
    
    /* Animation */
    animation: blurAnimation 0s infinite alternate;
}

@keyframes blurAnimation {
    from {
        backdrop-filter: blur(0px);
    }
    to {
        backdrop-filter: blur(10px);
    }
}
.container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 20px;
}

.login-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    z-index: -1;
    pointer-events: none;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card-content {
    padding: 40px;
}

#s_logo {
    background: url(images/logo.PNG) center no-repeat;
    height: 80px;
    margin-bottom: 20px;
    background-size: contain;
}

#s_product {
    display: none !important;
}



.s_field {
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 0.4s ease-out forwards;
    animation-delay: calc(var(--order) * 0.1s);
}

.s_field label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: #2D3748;
    margin-bottom: 8px;
}

.s_field input[type="text"],
.s_field input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.s_field input[type="text"]:focus,
.s_field input[type="password"]:focus {
    border-color: rgba(0, 129, 70, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 129, 70, 0.2);
    outline: none;
    background: rgba(255, 255, 255, 0.9);
}

#s_keepConnected_slot {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

#s_keepConnected_label {
    margin-left: 8px;
    font-size: 14px;
    color: #4A5568;
}

.s_actions_form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.s_submit {
    background-color: rgba(43, 58, 140, 0.9);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.s_submit:hover {
    background-color: rgba(30, 42, 110, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.s_submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#s_error {
    color: #E53E3E;
    background: rgba(229, 62, 62, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    backdrop-filter: blur(4px);
}

.s_product_other {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #2D3748;
}

.s_product_other a {
    color: #008146;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.s_product_other a:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(0, 129, 70, 0.2);
}

/* Animation effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    animation: fadeIn 0.6s ease-out forwards;
}

.s_field:nth-child(1) {
    --order: 1;
}

.s_field:nth-child(2) {
    --order: 2;
}

.s_field:nth-child(3) {
    --order: 3;
}

.s_actions_form {
    --order: 4;
}

.s_product_other {
    --order: 5;
}

/* Effet de reflet glass */
.login-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    pointer-events: none;
    transition: all 0.5s ease;
}

.login-card:hover::after {
    animation: glassReflection 3s ease-in-out infinite;
}

@keyframes glassReflection {
    0% {
        transform: rotate(30deg) translate(-30%, -30%);
    }
    50% {
        transform: rotate(30deg) translate(30%, 30%);
    }
    100% {
        transform: rotate(30deg) translate(-30%, -30%);
    }
}