body {
    overflow: hidden;
    height: 100vh;
}

.login-view {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Floating butterflies all over the page */
.butterfly {
    position: absolute;
    font-size: 24px;
    opacity: 0.6;
    animation: butterflyFloat 20s infinite ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.butterfly-1 {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
    filter: drop-shadow(0 0 8px rgba(255, 0, 255, 0.5));
}

.butterfly-2 {
    top: 20%;
    right: 20%;
    animation-delay: 2s;
    filter: drop-shadow(0 0 8px rgba(0, 255, 204, 0.5));
}

.butterfly-3 {
    top: 40%;
    left: 10%;
    animation-delay: 4s;
    filter: drop-shadow(0 0 8px rgba(255, 204, 0, 0.5));
}

.butterfly-4 {
    top: 60%;
    right: 15%;
    animation-delay: 6s;
    filter: drop-shadow(0 0 8px rgba(157, 0, 255, 0.5));
}

.butterfly-5 {
    bottom: 20%;
    left: 25%;
    animation-delay: 8s;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.5));
}

.butterfly-6 {
    bottom: 30%;
    right: 30%;
    animation-delay: 10s;
    filter: drop-shadow(0 0 8px rgba(255, 102, 0, 0.5));
}

.butterfly-7 {
    top: 30%;
    left: 50%;
    animation-delay: 12s;
    filter: drop-shadow(0 0 8px rgba(255, 0, 255, 0.4));
}

.butterfly-8 {
    top: 70%;
    left: 40%;
    animation-delay: 14s;
    filter: drop-shadow(0 0 8px rgba(0, 255, 204, 0.4));
}

.butterfly-9 {
    top: 15%;
    left: 70%;
    animation-delay: 16s;
    filter: drop-shadow(0 0 8px rgba(255, 204, 0, 0.4));
}

.butterfly-10 {
    bottom: 40%;
    left: 5%;
    animation-delay: 18s;
    filter: drop-shadow(0 0 8px rgba(157, 0, 255, 0.4));
}

/* Small butterflies */
.butterfly-small {
    font-size: 16px;
    opacity: 0.4;
    animation-duration: 15s;
}

.butterfly-11 {
    top: 5%;
    left: 30%;
    animation-delay: 1s;
    filter: drop-shadow(0 0 6px rgba(255, 0, 255, 0.3));
}

.butterfly-12 {
    top: 25%;
    left: 5%;
    animation-delay: 3s;
    filter: drop-shadow(0 0 6px rgba(0, 255, 204, 0.3));
}

.butterfly-13 {
    top: 45%;
    right: 5%;
    animation-delay: 5s;
    filter: drop-shadow(0 0 6px rgba(255, 204, 0, 0.3));
}

.butterfly-14 {
    bottom: 15%;
    left: 60%;
    animation-delay: 7s;
    filter: drop-shadow(0 0 6px rgba(157, 0, 255, 0.3));
}

.butterfly-15 {
    top: 80%;
    right: 10%;
    animation-delay: 9s;
    filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.3));
}

/* Large butterflies */
.butterfly-large {
    font-size: 32px;
    opacity: 0.7;
    animation-duration: 25s;
}

.butterfly-16 {
    top: 35%;
    left: 80%;
    animation-delay: 11s;
    filter: drop-shadow(0 0 12px rgba(255, 0, 255, 0.6));
}

.butterfly-17 {
    bottom: 10%;
    left: 45%;
    animation-delay: 13s;
    filter: drop-shadow(0 0 12px rgba(0, 255, 204, 0.6));
}

.butterfly-18 {
    top: 55%;
    left: 85%;
    animation-delay: 15s;
    filter: drop-shadow(0 0 12px rgba(255, 204, 0, 0.6));
}

@keyframes butterflyFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-15px) translateX(10px) rotate(5deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-25px) translateX(-5px) rotate(-3deg);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-10px) translateX(15px) rotate(2deg);
        opacity: 0.9;
    }
}

/* Extra bottom-left butterflies */
.login-view .col-md-6::before {
    content: '🦋🦋🦋';
    position: absolute;
    bottom: 5%;
    left: -150px;
    font-size: 20px;
    opacity: 0.2;
    animation: butterflyFloat11 18s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
    letter-spacing: 15px;
}

.login-view .col-md-6::after {
    content: '🦋🦋';
    position: absolute;
    bottom: 15%;
    left: -120px;
    font-size: 24px;
    opacity: 0.25;
    animation: butterflyFloat12 21s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
    letter-spacing: 12px;
}

/* Bottom-left butterfly cluster */
.login-view .container-fluid::before {
    content: '🦋🦋🦋🦋';
    position: absolute;
    bottom: 10%;
    left: 2%;
    font-size: 18px;
    opacity: 0.15;
    animation: butterflyFloat13 25s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
    letter-spacing: 25px;
    line-height: 1.5;
}

.login-view .container-fluid::after {
    content: '🦋🦋🦋';
    position: absolute;
    bottom: 20%;
    left: 5%;
    font-size: 22px;
    opacity: 0.2;
    animation: butterflyFloat14 23s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
    letter-spacing: 18px;
}

@keyframes butterflyFloat11 {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg);
        opacity: 0.2;
    }
    25% { 
        transform: translateX(15px) translateY(-10px) rotate(1deg);
        opacity: 0.3;
    }
    50% { 
        transform: translateX(-10px) translateY(5px) rotate(-1deg);
        opacity: 0.25;
    }
    75% { 
        transform: translateX(20px) translateY(-5px) rotate(0.5deg);
        opacity: 0.35;
    }
}

@keyframes butterflyFloat12 {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg);
        opacity: 0.25;
    }
    30% { 
        transform: translateX(-15px) translateY(8px) rotate(-0.5deg);
        opacity: 0.3;
    }
    60% { 
        transform: translateX(12px) translateY(-12px) rotate(1deg);
        opacity: 0.2;
    }
    90% { 
        transform: translateX(-8px) translateY(6px) rotate(-0.8deg);
        opacity: 0.4;
    }
}

@keyframes butterflyFloat13 {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg);
        opacity: 0.15;
    }
    15% { 
        transform: translateX(20px) translateY(-10px) rotate(3deg);
        opacity: 0.25;
    }
    30% { 
        transform: translateX(40px) translateY(-20px) rotate(-2deg);
        opacity: 0.2;
    }
    45% { 
        transform: translateX(30px) translateY(-30px) rotate(1deg);
        opacity: 0.3;
    }
    60% { 
        transform: translateX(50px) translateY(-25px) rotate(-1deg);
        opacity: 0.22;
    }
    75% { 
        transform: translateX(35px) translateY(-35px) rotate(2deg);
        opacity: 0.28;
    }
    90% { 
        transform: translateX(25px) translateY(-20px) rotate(-1deg);
        opacity: 0.18;
    }
}

/* Additional floating elements with neon glow */
.login-view .row::before {
    content: '🦋';
    position: absolute;
    top: 5%;
    left: 5%;
    font-size: 32px;
    opacity: 0.4;
    animation: butterflyFloat5 18s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(255, 204, 0, 0.4));
}

.login-view .row::after {
    content: '🦋';
    position: absolute;
    bottom: 10%;
    right: 8%;
    font-size: 28px;
    opacity: 0.5;
    animation: butterflyFloat6 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(157, 0, 255, 0.4));
}

/* Extra butterflies for the left side */
.login-view .row {
    position: relative;
}

/* Additional left-side butterflies using different selectors */
.login-view .col-12::before {
    content: '🦋🦋';
    position: absolute;
    top: 25%;
    left: -100px;
    font-size: 24px;
    opacity: 0.2;
    animation: butterflyFloat9 22s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
    letter-spacing: 20px;
}

.login-view .col-12::after {
    content: '🦋';
    position: absolute;
    top: 70%;
    left: -120px;
    font-size: 30px;
    opacity: 0.25;
    animation: butterflyFloat10 19s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes butterflyFloat9 {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg);
        opacity: 0.2;
    }
    30% { 
        transform: translateX(30px) translateY(-20px) rotate(6deg);
        opacity: 0.35;
    }
    60% { 
        transform: translateX(60px) translateY(-35px) rotate(-4deg);
        opacity: 0.25;
    }
    90% { 
        transform: translateX(45px) translateY(-25px) rotate(2deg);
        opacity: 0.3;
    }
}

@keyframes butterflyFloat10 {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg);
        opacity: 0.25;
    }
    25% { 
        transform: translateX(35px) translateY(-30px) rotate(-8deg);
        opacity: 0.4;
    }
    50% { 
        transform: translateX(70px) translateY(-20px) rotate(5deg);
        opacity: 0.3;
    }
    75% { 
        transform: translateX(50px) translateY(-40px) rotate(-3deg);
        opacity: 0.35;
    }
}

@keyframes butterflyFloat5 {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg);
        opacity: 0.15;
    }
    25% { 
        transform: translateX(40px) translateY(-30px) rotate(10deg);
        opacity: 0.3;
    }
    50% { 
        transform: translateX(80px) translateY(-20px) rotate(-8deg);
        opacity: 0.2;
    }
    75% { 
        transform: translateX(60px) translateY(-40px) rotate(5deg);
        opacity: 0.25;
    }
}

@keyframes butterflyFloat6 {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg);
        opacity: 0.2;
    }
    30% { 
        transform: translateX(-30px) translateY(-25px) rotate(-12deg);
        opacity: 0.35;
    }
    60% { 
        transform: translateX(-60px) translateY(-35px) rotate(8deg);
        opacity: 0.25;
    }
    90% { 
        transform: translateX(-40px) translateY(-30px) rotate(-5deg);
        opacity: 0.3;
    }
}

.login-view::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-20px) translateY(-10px); }
    50% { transform: translateX(20px) translateY(10px); }
    75% { transform: translateX(-10px) translateY(20px); }
}

.login-view::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Small neon butterflies */
        radial-gradient(1px 1px at 20px 30px, rgba(255, 0, 255, 0.6), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(0, 255, 204, 0.5), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 204, 0, 0.6), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(157, 0, 255, 0.5), transparent),
        radial-gradient(1px 1px at 160px 30px, rgba(0, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 200px 60px, rgba(255, 102, 0, 0.5), transparent),
        radial-gradient(1px 1px at 250px 20px, rgba(255, 0, 255, 0.6), transparent),
        radial-gradient(1px 1px at 300px 90px, rgba(0, 255, 204, 0.5), transparent),
        radial-gradient(1px 1px at 350px 50px, rgba(255, 204, 0, 0.6), transparent),
        radial-gradient(1px 1px at 400px 10px, rgba(157, 0, 255, 0.5), transparent),
        /* Medium neon butterflies */
        radial-gradient(2px 2px at 60px 120px, rgba(255, 0, 255, 0.3), transparent),
        radial-gradient(2px 2px at 120px 150px, rgba(0, 255, 204, 0.4), transparent),
        radial-gradient(2px 2px at 180px 100px, rgba(255, 204, 0, 0.3), transparent),
        radial-gradient(2px 2px at 240px 180px, rgba(157, 0, 255, 0.4), transparent),
        radial-gradient(2px 2px at 320px 140px, rgba(0, 255, 255, 0.3), transparent),
        /* Large neon butterflies */
        radial-gradient(3px 3px at 80px 200px, rgba(255, 0, 255, 0.2), transparent),
        radial-gradient(3px 3px at 160px 250px, rgba(0, 255, 204, 0.3), transparent),
        radial-gradient(3px 3px at 280px 220px, rgba(255, 204, 0, 0.2), transparent);
    background-repeat: repeat;
    background-size: 400px 300px;
    animation: butterflyFloat 25s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes butterflyFloat {
    0% { 
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.8;
    }
    25% { 
        transform: translateY(-20px) translateX(10px) rotate(1deg);
        opacity: 1;
    }
    50% { 
        transform: translateY(-10px) translateX(-15px) rotate(-1deg);
        opacity: 0.9;
    }
    75% { 
        transform: translateY(-30px) translateX(5px) rotate(0.5deg);
        opacity: 1;
    }
    100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.8;
    }
}

/* Floating butterfly elements around the card with neon glow */
.login-view .card::after {
    content: '🦋';
    position: absolute;
    top: 20%;
    right: -30px;
    font-size: 48px;
    opacity: 0.6;
    animation: butterflyFly1 8s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 0 10px rgba(255, 0, 255, 0.5));
}

.login-view .card::before {
    content: '🦋';
    position: absolute;
    bottom: 30%;
    left: -40px;
    font-size: 44px;
    opacity: 0.7;
    animation: butterflyFly2 10s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 0 10px rgba(0, 255, 204, 0.5));
}

@keyframes butterflyFly1 {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% { 
        transform: translateX(-20px) translateY(-15px) rotate(5deg);
        opacity: 0.6;
    }
    50% { 
        transform: translateX(-40px) translateY(-10px) rotate(-3deg);
        opacity: 0.4;
    }
    75% { 
        transform: translateX(-20px) translateY(-25px) rotate(2deg);
        opacity: 0.7;
    }
}

@keyframes butterflyFly2 {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg);
        opacity: 0.4;
    }
    33% { 
        transform: translateX(15px) translateY(-20px) rotate(-4deg);
        opacity: 0.7;
    }
    66% { 
        transform: translateX(30px) translateY(-15px) rotate(3deg);
        opacity: 0.5;
    }
}

.login-view .mask {
    display: none !important;
}

/* Additional floating butterflies around the container */
.login-view .container-fluid::before {
    content: '🦋';
    position: absolute;
    top: 10%;
    left: 10%;
    font-size: 36px;
    opacity: 0.3;
    animation: butterflyFloat3 12s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.login-view .container-fluid::after {
    content: '🦋🦋🦋';
    position: absolute;
    bottom: 20%;
    left: 5%;
    font-size: 22px;
    opacity: 0.2;
    animation: butterflyFloat14 23s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
    letter-spacing: 18px;
}

@keyframes butterflyFloat14 {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg);
        opacity: 0.2;
    }
    20% { 
        transform: translateX(30px) translateY(-15px) rotate(4deg);
        opacity: 0.3;
    }
    40% { 
        transform: translateX(55px) translateY(-25px) rotate(-2deg);
        opacity: 0.25;
    }
    60% { 
        transform: translateX(40px) translateY(-35px) rotate(1deg);
        opacity: 0.35;
    }
    80% { 
        transform: translateX(25px) translateY(-20px) rotate(-1deg);
        opacity: 0.28;
    }
}

/* More butterflies on the left side */
.login-view .col-lg-4::before {
    content: '🦋';
    position: absolute;
    top: 15%;
    left: -60px;
    font-size: 32px;
    opacity: 0.25;
    animation: butterflyFloat7 14s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.login-view .col-lg-4::after {
    content: '🦋';
    position: absolute;
    bottom: 25%;
    left: -80px;
    font-size: 28px;
    opacity: 0.3;
    animation: butterflyFloat8 16s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

/* Extra bottom-left butterflies */
.login-view .col-md-6::before {
    content: '🦋🦋🦋';
    position: absolute;
    bottom: 5%;
    left: -150px;
    font-size: 20px;
    opacity: 0.2;
    animation: butterflyFloat11 18s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
    letter-spacing: 15px;
}

.login-view .col-md-6::after {
    content: '🦋🦋';
    position: absolute;
    bottom: 15%;
    left: -120px;
    font-size: 24px;
    opacity: 0.25;
    animation: butterflyFloat12 21s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
    letter-spacing: 12px;
}

@keyframes butterflyFloat11 {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg);
        opacity: 0.2;
    }
    20% { 
        transform: translateX(25px) translateY(-15px) rotate(5deg);
        opacity: 0.35;
    }
    40% { 
        transform: translateX(50px) translateY(-25px) rotate(-3deg);
        opacity: 0.25;
    }
    60% { 
        transform: translateX(35px) translateY(-35px) rotate(2deg);
        opacity: 0.4;
    }
    80% { 
        transform: translateX(20px) translateY(-20px) rotate(-1deg);
        opacity: 0.3;
    }
}

@keyframes butterflyFloat12 {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg);
        opacity: 0.25;
    }
    25% { 
        transform: translateX(30px) translateY(-20px) rotate(-4deg);
        opacity: 0.4;
    }
    50% { 
        transform: translateX(60px) translateY(-30px) rotate(3deg);
        opacity: 0.3;
    }
    75% { 
        transform: translateX(40px) translateY(-25px) rotate(-2deg);
        opacity: 0.35;
    }
}

@keyframes butterflyFloat7 {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg);
        opacity: 0.25;
    }
    20% { 
        transform: translateX(20px) translateY(-25px) rotate(8deg);
        opacity: 0.4;
    }
    40% { 
        transform: translateX(40px) translateY(-15px) rotate(-6deg);
        opacity: 0.3;
    }
    60% { 
        transform: translateX(30px) translateY(-35px) rotate(4deg);
        opacity: 0.45;
    }
    80% { 
        transform: translateX(15px) translateY(-30px) rotate(-3deg);
        opacity: 0.35;
    }
}

@keyframes butterflyFloat8 {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% { 
        transform: translateX(25px) translateY(-20px) rotate(-7deg);
        opacity: 0.45;
    }
    50% { 
        transform: translateX(50px) translateY(-30px) rotate(5deg);
        opacity: 0.35;
    }
    75% { 
        transform: translateX(35px) translateY(-25px) rotate(-4deg);
        opacity: 0.4;
    }
}

@keyframes butterflyFloat3 {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg);
        opacity: 0.2;
    }
    20% { 
        transform: translateX(30px) translateY(-20px) rotate(8deg);
        opacity: 0.4;
    }
    40% { 
        transform: translateX(60px) translateY(-10px) rotate(-5deg);
        opacity: 0.3;
    }
    60% { 
        transform: translateX(40px) translateY(-30px) rotate(3deg);
        opacity: 0.5;
    }
    80% { 
        transform: translateX(20px) translateY(-25px) rotate(-2deg);
        opacity: 0.35;
    }
}

@keyframes butterflyFloat4 {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg);
        opacity: 0.25;
    }
    30% { 
        transform: translateX(-25px) translateY(-15px) rotate(-6deg);
        opacity: 0.45;
    }
    60% { 
        transform: translateX(-50px) translateY(-25px) rotate(4deg);
        opacity: 0.3;
    }
    90% { 
        transform: translateX(-30px) translateY(-20px) rotate(-3deg);
        opacity: 0.4;
    }
}

.login-view .card-body {
    padding: 0 !important;
    position: relative;
    z-index: 10;
    background: transparent !important;
}

/* Title section */
.login-view .card-body::before {
    content: '';
    display: block;
    text-align: center;
    margin-bottom: 2rem;
}

.login-view .card-body h1 {
    background: linear-gradient(90deg, #9d00ff, #00ffcc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-view .card-body p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.login-view .input-group {
    margin-bottom: 30px !important;
    position: relative;
    z-index: 15;
}

/* Removed pulsing indicator for professional look */

.login-view .form-label {
    color: #333 !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

.login-view .card {
    animation: slideInUp 0.6s ease-out !important;
    position: relative;
    z-index: 10;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.msd-logo-container {
    height: 80px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.msd-logo {
    width: 120px;
    filter: drop-shadow(0 0 20px rgba(157, 0, 255, 0.6));
    animation: logoFloat 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.msd-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(157, 0, 255, 0.8));
}

/* SVG Animation */
.msd-logo .left-wing,
.msd-logo .right-wing {
    animation: wingFlap 3s ease-in-out infinite;
    transform-origin: center;
}

.msd-logo .left-wing {
    animation-delay: 0s;
}

.msd-logo .right-wing {
    animation-delay: 0.1s;
}

.msd-logo .body {
    animation: bodyPulse 2s ease-in-out infinite;
}

.msd-logo .antennae {
    animation: antennaeSway 4s ease-in-out infinite;
}

@keyframes wingFlap {
    0%, 100% { 
        transform: rotateY(0deg) scale(1);
    }
    25% { 
        transform: rotateY(-5deg) scale(1.02);
    }
    50% { 
        transform: rotateY(0deg) scale(1.05);
    }
    75% { 
        transform: rotateY(5deg) scale(1.02);
    }
}

@keyframes bodyPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.02);
        opacity: 0.9;
    }
}

@keyframes antennaeSway {
    0%, 100% { 
        transform: rotate(0deg);
    }
    25% { 
        transform: rotate(-2deg);
    }
    75% { 
        transform: rotate(2deg);
    }
}

.glass-card {
    background: rgba(15, 12, 41, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    width: 90%;
    max-width: 400px;
    padding: 2.5rem;
    margin: 1rem;
    position: relative;
    z-index: 10;
}

.login-view .card {
    background: rgba(15, 12, 41, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2) !important;
    border-radius: 20px !important;
    width: 90% !important;
    max-width: 400px !important;
    padding: 2.5rem !important;
    margin: 1rem !important;
    position: relative !important;
    z-index: 10 !important;
}

.login-view .card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.3) !important;
}

.login-view .card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        #e6eae3 0%, 
        #e4e8e0 25%, 
        #e2e5df 50%, 
        #e0e2de 75%, 
        #dcdcdc 100%);
    border-radius: 34px;
    z-index: -1;
    opacity: 0.4;
}

.btn-login {
    background: linear-gradient(45deg, #9d00ff, #ff00ff);
    color: white;
    border-radius: 50px;
    padding: 15px 0;
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
    letter-spacing: 1px;
}

.login-view .btn-primary,
.login-view .btn.bg-gradient-primary {
    background: linear-gradient(45deg, #9d00ff, #ff00ff) !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 15px 0 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    font-size: 16px !important;
    width: 100% !important;
}

.login-view .btn-primary::before,
.login-view .btn.bg-gradient-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.8s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(157, 0, 255, 0.4);
}

.login-view .btn-primary:hover,
.login-view .btn.bg-gradient-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(157, 0, 255, 0.4) !important;
}

.login-view .btn-primary:hover::before,
.login-view .btn.bg-gradient-primary:hover::before {
    left: 100%;
}

.input-field {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 15px 20px;
    color: white;
    transition: all 0.3s ease;
    width: 100%;
}

.login-view .form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50px !important;
    padding: 15px 20px !important;
    color: white !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.login-view .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    font-weight: 400 !important;
    font-size: 16px !important;
}

.input-field:focus {
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.login-view .form-control:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    outline: none !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.login-view .form-control:focus-visible {
    outline: none !important;
}

.login-view .form-label {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin-bottom: 8px !important;
    text-shadow: none !important;
}

/* Remember me checkbox styling */
.login-view .form-check-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 4px !important;
    outline: none !important;
    cursor: pointer !important;
    position: relative !important;
    margin-right: 8px !important;
    background: transparent !important;
}

.login-view .form-check-input:checked {
    background: linear-gradient(45deg, #9d00ff, #ff00ff) !important;
    border-color: transparent !important;
}

.login-view .form-check-input:checked::after {
    content: "✓" !important;
    position: absolute !important;
    color: white !important;
    font-size: 12px !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.login-view .form-check-label {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px !important;
    cursor: pointer !important;
}

/* Forgot password link */
.login-view .text-end a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

.login-view .text-end a:hover {
    color: #00ffcc !important;
    opacity: 1 !important;
}

/* Social login section */
.login-view .social-login {
    text-align: center !important;
    margin-top: 2rem !important;
}

.login-view .social-login p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px !important;
    margin-bottom: 1rem !important;
}

.login-view .social-icons {
    display: flex !important;
    justify-content: center !important;
    gap: 1rem !important;
}

.login-view .social-icon {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    text-decoration: none !important;
    color: white !important;
}

.login-view .social-icon:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Sign up link */
.login-view .signup-link {
    text-align: center !important;
    margin-top: 2rem !important;
}

.login-view .signup-link p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px !important;
    margin: 0 !important;
}

.login-view .signup-link a {
    color: #00ffcc !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.login-view .signup-link a:hover {
    opacity: 1 !important;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5) !important;
}

/* Flexbox utilities for the login form */
.flex {
    display: flex !important;
}

.items-center {
    align-items: center !important;
}

.justify-between {
    justify-content: space-between !important;
}

.justify-center {
    justify-content: center !important;
}

.mr-2 {
    margin-right: 0.5rem !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-4 {
    margin-bottom: 1rem !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.text-4xl {
    font-size: 2.25rem !important;
    line-height: 2.5rem !important;
}

.font-bold {
    font-weight: 700 !important;
}

.opacity-80 {
    opacity: 0.8 !important;
}

/* Title gradient styling */
.title {
    background: linear-gradient(90deg, #9d00ff, #00ffcc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Additional utility classes */
.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-white {
    color: white;
}

.opacity-80 {
    opacity: 0.8;
}

.cursor-pointer {
    cursor: pointer;
}

.hover\:opacity-100:hover {
    opacity: 1;
}

.hover\:text-cyan-300:hover {
    color: #67e8f9;
}

.text-cyan-300 {
    color: #67e8f9;
}

.font-medium {
    font-weight: 500;
}

.w-full {
    width: 100%;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.text-center {
    text-align: center;
}

.justify-center {
    justify-content: center;
}

/* Social icon styling */
.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Checkbox container */
.checkbox-container {
    display: flex;
    align-items: center;
}

.checkbox-container input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    position: relative;
    margin-right: 8px;
}

.checkbox-container input[type="checkbox"]:checked {
    background: linear-gradient(45deg, #9d00ff, #ff00ff);
    border-color: transparent;
}

.checkbox-container input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes cardFloat {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.login-view .input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.login-view .input-group-outline {
    position: relative;
}

.login-view .input-group-outline.is-filled .form-label {
    transform: translateY(-25px) scale(0.85);
    color: #e2e5df !important;
    -webkit-text-fill-color: #e2e5df !important;
}

.login-view .alert {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    color: #374151 !important;
}

.login-view .alert-success {
    border-color: #10b981 !important;
    background: #ecfdf5 !important;
    color: #065f46 !important;
}

.login-view .text-danger {
    color: #dc2626 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    margin-top: 8px !important;
    text-shadow: none !important;
}

/* Ensure form fields are interactive */
.login-view input[type="email"],
.login-view input[type="password"] {
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    cursor: text !important;
    position: relative;
    z-index: 25;
}

.login-view input[type="email"]:focus,
.login-view input[type="password"]:focus {
    outline: none !important;
    border-color: #000000 !important;
}

/* Override any potential conflicts */
.login-view * {
    pointer-events: auto;
}

.login-view .card * {
    pointer-events: auto;
}

@media (max-width: 768px) {
    .login-view .card {
        margin: 20px;
        border-radius: 20px !important;
        max-width: 100%;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
    }
    
    .login-view .card-body {
        padding: 32px 24px !important;
    }
    
    .login-view .btn-primary,
    .login-view .btn.bg-gradient-primary {
        padding: 14px 24px !important;
        font-size: 14px !important;
    }
    
    .login-logo .msd-logo {
        max-height: 60px;
    }
    
    .login-logo {
        height: 80px;
        margin-bottom: 24px;
    }
    
    .login-view .form-control {
        padding: 16px 20px !important;
        font-size: 15px !important;
    }
}

@keyframes butterflyFloat14 {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg);
        opacity: 0.2;
    }
    20% { 
        transform: translateX(18px) translateY(-8px) rotate(2deg);
        opacity: 0.3;
    }
    40% { 
        transform: translateX(-12px) translateY(15px) rotate(-1.5deg);
        opacity: 0.25;
    }
    60% { 
        transform: translateX(25px) translateY(-5px) rotate(1deg);
        opacity: 0.35;
    }
    80% { 
        transform: translateX(-20px) translateY(10px) rotate(-2deg);
        opacity: 0.3;
    }
}

/* Error message styling */
.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.alert-danger ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alert-danger li {
    color: #ff6b6b;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.inputerror {
    color: #ff6b6b !important;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}