:root {
    /* Brand Colors */
  --primary-green: #09026c;
  --secondary-green: #0d00c2;
  --other-secondary-green: #1302ff;
  --accent-green: #4c43d0;
  --dark-forest: #030028;
  --sage-gray: #deddea;
  --natural-white: #FAFAFA;
  --earth-brown: #5D4037;
  --golden-yellow: #FFC107;
  --wheat-gold: #FFD54F;
  --sky-blue: #2196F3;
  --water-blue: #03A9F4;
  --success-green: #38ad46;
  --error-red: #ff0000;
  --warning-orange: #ff9800;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--sage-gray) 0%, var(--natural-white) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Chargement de la page */
#preloader_login {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, rgba(46, 66, 125, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%) !important;
    z-index: 99999 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: all 0.5s ease !important;
}

.spinner_login {
    width: 70px !important;
    height: 70px !important;
    border: 7px solid rgba(46, 66, 125, 0.2) !important;
    border-top: 7px solid #0d00c2 !important;
    border-radius: 50% !important;
    animation: spin_login 1s linear infinite !important;
}

@keyframes spin_login {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Main Container */
.login-container {
    min-height: 100vh;
    display: flex;
    background: var(--natural-white);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
}

/* Left Side - Image/Illustration */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-forest) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Background Image Container */
.login-background-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 1;
    transition: all 0.3s ease;
    filter: blur(0.5px) brightness(1.1);
}

/* Patterns agricoles décoratifs en overlay */
.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="agricultural-bg" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="2" fill="%23FFFFFF" opacity="0.08"/><circle cx="25" cy="25" r="1" fill="%23FFC107" opacity="0.06"/><circle cx="75" cy="75" r="1.5" fill="%234CAF50" opacity="0.04"/><path d="M20 20 L80 20 M20 40 L80 40 M20 60 L80 60 M20 80 L80 80" stroke="%23FFFFFF" stroke-width="0.5" opacity="0.03"/></pattern></defs><rect width="1000" height="1000" fill="url(%23agricultural-bg)"/></svg>');
    opacity: 0.4;
    z-index: 2;
    animation: subtleMove 25s ease-in-out infinite;
}

/* Overlay graduel pour améliorer la lisibilité */
.login-left::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(46, 66, 125, 0.4) 0%,
            rgba(9, 26, 79, 0.3) 30%,
            rgba(46, 66, 125, 0.2) 70%,
            rgba(9, 26, 79, 0.5) 100%);
    z-index: 2;
}

/* Animation subtile pour le background */
@keyframes subtleMove {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }

    25% {
        transform: translate(-5px, -10px) scale(1.01);
        opacity: 0.3;
    }

    50% {
        transform: translate(10px, -5px) scale(0.99);
        opacity: 0.5;
    }

    75% {
        transform: translate(-3px, 8px) scale(1.005);
        opacity: 0.35;
    }
}

/* Illustration Container */
.login-illustration {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 500px;
    padding: 40px;
    backdrop-filter: blur(2px);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Brand Logo */
.login-illustration .brand-logo {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-illustration .brand-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.login-illustration .brand-logo:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.login-illustration .brand-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.login-illustration .brand-logo:hover img {
    transform: scale(1.1) rotate(5deg);
}

.login-illustration .brand-logo .default-logo {
    font-size: 48px;
    color: var(--golden-yellow);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Main Title */
.login-illustration h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ffffff, var(--golden-yellow), #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Description Text */
.login-illustration p {
    font-size: 1.2rem;
    opacity: 0.95;
    line-height: 1.7;
    margin-bottom: 30px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-weight: 300;
}

/* Features List */
.features-list {
    list-style: none;
    text-align: left;
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.features-list li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    opacity: 0.95;
    transition: all 0.3s ease;
    position: relative;
}

.features-list li::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--golden-yellow);
    transition: height 0.3s ease;
}

.features-list li:hover {
    opacity: 1;
    transform: translateX(10px);
}

.features-list li:hover::before {
    height: 100%;
}

.features-list li i {
    margin-right: 15px;
    color: var(--golden-yellow);
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.features-list li:hover i {
    transform: scale(1.2) rotate(360deg);
}

/* Right Side - Login Form */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--natural-white);
    position: relative;
}

.login-right::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(46, 66, 125, 0.02) 100%);
    z-index: 1;
}

/* Form Container */
.login-form-container {
    width: 100%;
    max-width: 450px;
    padding: 30px 20px;
    background: white;
    border-radius: 25px;
    box-shadow:
        0 25px 80px rgba(46, 66, 125, 0.15),
        0 0 0 1px rgba(46, 66, 125, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 2;
    transition: all 0.3s ease;
}

.login-form-container:hover {
    transform: translateY(-5px);
    box-shadow:
        0 35px 100px rgba(446, 66, 125, 0.2),
        0 0 0 1px rgba(46, 66, 125, 0.15);
}

.login-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg,
            var(--primary-green) 0%,
            var(--golden-yellow) 30%,
            var(--secondary-green) 70%,
            var(--primary-green) 100%);
    animation: colorFlow 3s ease-in-out infinite;
}

@keyframes colorFlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.form-header h2 {
    color: var(--primary-green);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.form-header h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--golden-yellow), var(--secondary-green));
    border-radius: 2px;
}

.form-header p {
    color: var(--earth-brown);
    font-size: 1.1rem;
    opacity: 0.8;
    font-weight: 300;
}

/* Alert Container */
#alertContainer {
    margin-bottom: 25px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert {
    padding: 15px 20px;
    border-radius: 12px;
    border: none;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.alert-success {
    background: linear-gradient(135deg, rgba(746, 66, 125, 0.1), rgba(46, 66, 125, 0.05));
    color: var(--success-green);
    border-left: 4px solid var(--success-green);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1), rgba(244, 67, 54, 0.05));
    color: var(--error-red);
    border-left: 4px solid var(--error-red);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(255, 152, 0, 0.05));
    color: var(--warning-orange);
    border-left: 4px solid var(--warning-orange);
}

/* Form Styles */
.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.input-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.form-control {
    width: 100%;
    padding: 18px 55px 18px 18px;
    border: 2px solid var(--accent-green);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--natural-white);
    color: var(--dark-forest);
    font-weight: 400;
    position: relative;
}

.form-control::placeholder {
    color: rgba(93, 64, 55, 0.6);
    font-weight: 300;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow:
        0 0 0 4px rgba(46, 66, 125, 0.1),
        0 8px 25px rgba(46, 66, 125, 0.15);
    background: white;
    transform: translateY(-2px);
}

.form-control:focus+.input-icon {
    color: var(--primary-green);
    transform: translateY(-50%) scale(1.1);
}

.form-control:focus~label {
    color: var(--secondary-green);
}

/* Input Icons */
.input-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--earth-brown);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    z-index: 2;
}

/* Password Toggle */
.password-toggle {
    cursor: pointer;
    user-select: none;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    transform: translateY(-50%) scale(1.2);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.9);
}

/* Checkbox Styles */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 35px;
    position: relative;
    cursor: pointer;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    accent-color: var(--primary-green);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    transform: scale(1.1);
}

.form-check-label {
    color: var(--earth-brown);
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 400;
    transition: color 0.3s ease;
    user-select: none;
}

.form-check:hover .form-check-label {
    color: var(--primary-green);
}

/* Submit Button */
.btn-login {
    width: 100%;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow:
        0 15px 35px rgba(46, 66, 125, 0.4),
        0 5px 15px rgba(46, 66, 125, 0.2);
    background: linear-gradient(135deg, var(--dark-forest) 0%, var(--primary-green) 100%);
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(46, 66, 125, 0.3);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loading State */
.btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
    background: linear-gradient(135deg, var(--earth-brown) 0%, var(--primary-green) 100%);
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Validation States */
.form-control.error {
    border-color: var(--error-red);
    background-color: rgba(244, 67, 54, 0.05);
    animation: shake 0.5s ease-in-out;
}

.form-control.success {
    border-color: var(--success-green);
    background-color: rgba(76, 175, 80, 0.05);
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 8px;
    font-size: 0.875rem;
    color: var(--error-red);
    font-weight: 500;
    padding-left: 5px;
}

.invalid-feedback.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(46, 66, 125, 0.1);
    color: var(--earth-brown);
    font-size: 0.9rem;
    line-height: 1.6;
}

.login-footer p {
    margin-bottom: 5px;
    opacity: 0.8;
}

/* Floating Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    25% {
        transform: translateY(-15px) translateX(8px);
    }

    50% {
        transform: translateY(-25px) translateX(0px);
    }

    75% {
        transform: translateY(-15px) translateX(-8px);
    }
}

.floating-element {
    animation: float 8s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    animation-delay: -2s;
}

.floating-element:nth-child(3) {
    animation-delay: -4s;
}

.floating-element:nth-child(4) {
    animation-delay: -6s;
}

/* Fade In Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-form-container {
    animation: slideInRight 0.8s ease;
}

.login-illustration {
    animation: slideInLeft 0.8s ease;
}

/* Hover Effects */
.login-left:hover .login-background-image {
    opacity: 0.25;
    transform: scale(1.02);
    filter: blur(0.3px) brightness(1.2);
}

.login-left:hover .floating-element {
    animation-duration: 6s;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .login-illustration h1 {
        font-size: 2.8rem;
    }

    .login-illustration p {
        font-size: 1.1rem;
    }
}

@media (max-width: 1024px) {
    .login-left {
        display: none;
    }

    .login-right {
        flex: none;
        width: 100%;
    }

    .login-container {
        background: linear-gradient(135deg, var(--sage-gray) 0%, var(--natural-white) 100%);
    }
}

@media (max-width: 768px) {
    .login-right {
        padding: 30px 20px;
    }

    .login-form-container {
        padding: 40px 30px;
        border-radius: 20px;
        margin: 20px 0;
        max-width: 100%;
    }

    .form-header h2 {
        font-size: 1.8rem;
    }

    .form-control {
        padding: 15px 50px 15px 15px;
        font-size: 0.95rem;
    }

    .btn-login {
        padding: 15px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .login-form-container {
        padding: 30px 25px;
        margin: 15px;
        border-radius: 15px;
        box-shadow: 0 15px 40px rgba(46, 66, 125, 0.15);
    }

    .form-header h2 {
        font-size: 1.5rem;
    }

    .form-control {
        padding: 12px 45px 12px 12px;
        font-size: 0.9rem;
    }

    .btn-login {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .input-icon {
        right: 15px;
        font-size: 1.1rem;
    }
}

/* Special Effects */
@media (prefers-reduced-motion: no-preference) {
    .login-container {
        animation: containerFadeIn 1s ease;
    }
}

@keyframes containerFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-control {
        border-width: 3px;
    }

    .btn-login {
        border: 2px solid var(--primary-green);
    }
}

/* Print styles */
@media print {
    .login-container {
        display: none;
    }
}

/* Focus styles for accessibility */
.form-control:focus,
.btn-login:focus,
.form-check-input:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--sage-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green);
}

/* Selection styles */
::selection {
    background: var(--accent-green);
    color: white;
}

::-moz-selection {
    background: var(--accent-green);
    color: white;
}

/* Advanced Input Animations */
.input-wrapper {
    position: relative;
}

.input-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--secondary-green));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.form-control:focus+.input-icon+.input-wrapper::after,
.input-wrapper:focus-within::after {
    width: 100%;
}

/* Ripple Effect for Button */
.btn-login {
    position: relative;
    overflow: hidden;
}

.btn-login::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-login:active::after {
    width: 300px;
    height: 300px;
}

/* Enhanced Floating Labels Effect */
.form-group {
    position: relative;
}

.floating-label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 0 8px;
    color: var(--earth-brown);
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 1rem;
}

.form-control:focus~.floating-label,
.form-control:not(:placeholder-shown)~.floating-label {
    top: 0;
    font-size: 0.85rem;
    color: var(--primary-green);
    font-weight: 600;
}

/* Particle Animation Background */
.login-left {
    position: relative;
    overflow: hidden;
}

.login-left .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.login-left .particles::before,
.login-left .particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: floatParticles 15s linear infinite;
}

.login-left .particles::before {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.login-left .particles::after {
    top: 60%;
    right: 30%;
    animation-delay: 7s;
}

@keyframes floatParticles {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Success Animation */
.success-animation {
    position: relative;
}

.success-animation::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: var(--success-green);
    font-size: 2rem;
    font-weight: bold;
    animation: successPop 0.6s ease forwards;
}

@keyframes successPop {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(180deg);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1) rotate(360deg);
        opacity: 1;
    }
}

/* Error Shake Animation Enhanced */
.error-shake {
    animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-10px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(10px);
    }
}

/* Glow Effects */
.glow-on-hover {
    transition: all 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow:
        0 0 20px rgba(46, 66, 125, 0.3),
        0 0 40px rgba(46, 66, 125, 0.2),
        0 0 60px rgba(46, 66, 125, 0.1);
}

/* Typing Animation for Text */
.typing-text {
    overflow: visible;
    border-right: 2px solid var(--golden-yellow);
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    line-height: 1.3;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--golden-yellow);
    }
}

/* Pulse Animation for Important Elements */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 66, 125, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(46, 125, 50, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0);
    }
}

/* Bounce Animation for Interactive Elements */
.bounce-on-click {
    transition: transform 0.1s ease;
}

.bounce-on-click:active {
    transform: scale(0.95);
}

/* Slide In Animations for Form Elements */
.slide-in-left {
    animation: slideInLeft 0.6s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.6s ease forwards;
}

.slide-in-up {
    animation: slideInUp 0.6s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger Animation for Form Elements */
.form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.form-group:nth-child(3) {
    animation-delay: 0.3s;
}

.form-check {
    animation-delay: 0.4s;
}

.btn-login {
    animation-delay: 0.5s;
}

/* High Performance Animations */
@media (prefers-reduced-motion: no-preference) {
    .form-group {
        animation: slideInUp 0.6s ease both;
    }
}

/* End of CSS */