
:root {
    --primary: #4359ee;
    --primary-dark: #2c3ab1;
    --primary-light: rgba(67, 89, 238, 0.2);
    --text: #ffffff;
    --text-light: rgba(255,255,255,0.7);
    --card: rgba(255,255,255,0.05);
    --border-radius: 12px;
    --transition: 0.3s ease-in-out;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'SolaimanLipi', 'Poppins', system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #121212;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    font-family: 'SolaimanLipi', 'Poppins', system-ui, sans-serif;
    height: 100%;
    background-image: url('../../assets/35.png');
    background-position: center;
    background-size: cover;
    filter: blur(0px);
    z-index: -1;
 
  
}
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 31% 18%, rgba(255,255,200,0.9), transparent 13%);
    pointer-events: none;
    z-index: 0;
    animation: glowOverlay 3s ease-in-out infinite alternate, moonGlow 3s ease-in-out infinite alternate;
    filter: brightness(2) drop-shadow(0 0 60px rgba(255,255,200,0.8));
}


@keyframes moonGlow {
  0% { opacity: 0.6; }
  50% { opacity: 0.9; }
  100% { opacity: 1; }
}




/* Disable all animations and transitions on mobile */
@media (max-width: 768px) {
    /* Glow overlay */
    body::before {
        animation: none !important;
        filter: none !important;
        background: none !important; /* optional: keep static background */
    }


    /* Butterflies */
    .butterfly {
        display: none !important;
        animation: none !important;
    }

    /* River shimmer */
    .river {
        animation: none !important;
    }

}



/* Login container */
.login-container {
    position: relative;
    z-index: 10;
    width: 90%;                /* fluid width */
    max-width: 450px;          /* keeps it neat on desktop */
    background: var(--card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: var(--transition);
    margin: 1rem; 
    animation: fadeIn 0.6s ease-out;/* ensures breathing room */
}

/* Decorative top line
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}
 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Responsive tweaks */
@media (max-width: 768px) {
    .login-title {
        font-size: 1.5rem;
        
    }
    .form-input {
        padding: 0.75rem 2.5rem;
        font-size: 0.9rem;
    }
    .login-button {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        width: 95%;
        max-width: 100%;
        border-radius: 15px; /* smaller rounding for mobile */
    }
    .logo {
        width: 65px;
        height: 65px;
    }
    .login-title {
        font-size: 1.25rem;
    }
    .login-subtitle {
        font-size: 0.8rem;
    }
    .form-input {
        padding: 0.7rem 2.25rem;
        font-size: 0.85rem;
    }
    .login-button {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* Alert Banner */
.alert-banner {
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 100%);
    color: white;
    padding: 0.75rem 1rem;
    text-align: center;
    font-family: 'SolaimanLipi', 'Poppins', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Login Header */
.login-header {
    padding: 2rem 2rem 1.5rem;
    text-align: center;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}
.swal-login-width {
    width: 95%!important;        /* Responsive width */
    max-width: 400px!important;/*tch login-container max width */
    padding: 20px !important;      /* Optional: adjust padding */
    box-sizing: border-box;
    border-radius:20px;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(79, 70, 229, 0.2));
    transition: var(--transition);
}

.logo.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

.login-title {
    font-size: 1.75rem;
    
    font-weight: 600;
    font-family: 'SolaimanLipi', 'Poppins', system-ui, sans-serif;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0px;
    margin-top: 0px;
}

.login-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 0px;
}

.login-form {
    padding: 0 1.50rem 1.50rem;
}

.form-group {
    margin-bottom: 0.50rem;
    position: relative;
    
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-family: 'SolaimanLipi', 'Poppins', system-ui, sans-serif;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Input Fields */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 0.875rem 3rem;
    font-size: 0.9375rem;
    font-family: 'SolaimanLipi', 'Poppins', system-ui, sans-serif;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.2);
    background-color: rgba(255,255,255,0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    color: var(--text);
    font-weight: 400;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-input:focus {
    outline: none;
    font-family: 'SolaimanLipi', 'Poppins', system-ui, sans-serif;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    background-color: rgba(255,255,255,0.1);
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
    z-index: 2;
    transition: var(--transition);
}

.form-input:focus + .input-icon {
    color: var(--primary);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    font-family: 'SolaimanLipi', 'Poppins', system-ui, sans-serif;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* Login Button */
.login-button {
    width: 100%;
    font-family: 'SolaimanLipi', 'Poppins', system-ui, sans-serif;
    padding: 1rem;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    margin-top: 1rem;
    margin-bottom: 0px;
}


.login-footer {
    font-family: 'SolaimanLipi', 'Poppins', system-ui, sans-serif;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 0px;
    justify-content: center;
}

.login-footer a {
    text-decoration: none;
      margin-top: 10px;
 color: white;
 margin-top: 5px;
 background-color: #3C5ACD;
 border-radius: 8px;
 margin-bottom: 5px;
 padding: 5px;
}
.login-footer p{
    text-decoration: none;
    margin-top: 5px;
      margin-bottom: 5px;
 color: white;
}
.login-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
/*
.login-link:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}
*/
/* Overlay container for success */
.login-success-overlay,
.login-error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.login-success-overlay.show,
.login-error-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.login-success-overlay {
    background: rgba(34, 197, 94, 0.15);
}

.login-error-overlay {
    background: rgba(239, 68, 68, 0.15);
}

/* Green tick animation */
.checkmark, .crossmark {
    width: 120px;
    height: 120px;
    animation: scaleUp 0.6s ease forwards;
}

.checkmark__circle, .crossmark__circle {
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    stroke-width: 5;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    stroke-width: 5;
    fill: none;
    stroke: #22c55e;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

.crossmark__line {
    stroke-dasharray: 28;
    stroke-dashoffset: 28;
    stroke-width: 5;
    stroke: #ef4444;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke { 100% { stroke-dashoffset: 0; } }
@keyframes scaleUp { 0% { transform: scale(0); opacity: 0; } 50% { transform: scale(1.2); opacity:1; } 100% { transform: scale(1); opacity:1; } }
.logo-2 {
   
    justify-content: center; /* horizontal center */
    align-items: center;     /* vertical center */
  
    animation: upDown 7s ease-in-out infinite;
}

@keyframes upDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px); /* moves up */
    }
}
.login-form{
    margin-bottom: 0px!important;
    padding-bottom: 1px !important;
}
   

/* Butterfly container */
#butterflyContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* behind login container */
    pointer-events: none;
    overflow: hidden;
}

/* Each butterfly */
.butterfly {
    position: absolute;
    width: 40px;
    height: 40px;
    background-image: url('imageslini'); /* Replace with colorful butterfly PNG */
    background-size: contain;
    background-repeat: no-repeat;
    animation: fly linear infinite;
}
.river {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 200px;
  background: url('river.png') no-repeat center/cover;
  animation: shimmer 8s linear infinite;
  opacity: 0.8;
}
@keyframes shimmer {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
  100% { filter: brightness(1); }
}

/* Fly animation (horizontal & vertical) */
@keyframes fly {
    0% {
        transform: translate(0px, 0px) rotate(0deg);
    }
    25% {
        transform: translate(50px, -50px) rotate(15deg);
    }
    50% {
        transform: translate(-50px, 50px) rotate(-15deg);
    }
    75% {
        transform: translate(50px, 50px) rotate(15deg);
    }
    100% {
        transform: translate(0px, 0px) rotate(0deg);
    }
}
