/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body & Background Container */
body {

    background: #ffffff;
    color: #fff;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Animated Starry Background */
.space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Modal Overlay - Less opaque, so stars are visible */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use very subtle dark layer so stars shine through */
    background: rgba(10, 15, 30, 0.3); /* Deep navy tint, not black */
    backdrop-filter: blur(10px); /* This will blur what's behind: stars & nebula */
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
    z-index: 1000;
}

/* Active State - Fade in smoothly */
.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 800px;
    max-width: 90%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    border: 1px solid rgba(60, 140, 255, 0.4);
    background: rgba(15, 25, 50, 0.8); /* Dark transparent blue */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateY(-40px) scale(0.95);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Static soft glow */
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(60, 140, 255, 0.25);
}

/* Active State - No Animation, Just Smooth Transform */
.modal.active .modal-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Left Side: Login Form */
.modal-left {
    padding: 60px 40px;
    flex: 1;
    color: #e0f0ff;
    animation: fadeInLeft 0.8s ease forwards;
    display: flex;
    flex-direction: column;
}

.modal-left h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Icon styling */
.modal-left .ui.action.input .ui.button i.icon {
    margin: 0 !important;
    font-size: 1rem;
}

.modal-desc {
    color: #000000;
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.6;
}

/* Input Fields */
.input-block {
    margin-bottom: 2rem;
    position: relative;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #000000;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.login-button{
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    position: relative;
}

@keyframes shine {
    0% { left: -40px; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Right Side: Branding (Blue Nebula) */
.modal-right {
    flex: 1;
    background: linear-gradient(135deg,
        rgba(30, 60, 160, 0.7),
        rgba(10, 30, 80, 0.8));
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 60px;
    text-align: center;
    border-left: 1px solid rgba(60, 140, 255, 0.4);
    animation: fadeInRight 0.8s ease forwards;
    position: relative;
    overflow: hidden;
}

/* Floating Orbs (Blue Theme) */
.modal-right::before,
.modal-right::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(60, 140, 255, 0.4);
    border-radius: 50%;
    opacity: 0.4;
    pointer-events: none;
}

.modal-right::before {
    top: 30%;
    left: 20%;
    animation: floatOrb 8s infinite ease-in-out;
}

.modal-right::after {
    top: 60%;
    right: 15%;
    width: 60px;
    height: 60px;
    border-color: rgba(40, 180, 255, 0.5);
    animation: floatOrb 6s infinite ease-in-out reverse;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10px, -15px) scale(1.1); }
}

.modal-right i {
    font-size: 5rem;
    margin-bottom: 20px;
    color: #a0d0ff;
    text-shadow: 0 0 20px rgba(60, 140, 255, 0.8);
    animation: pulseIcon 3s infinite alternate;
}

@keyframes pulseIcon {
    0% { text-shadow: 0 0 15px rgba(60, 140, 255, 0.6); }
    100% { text-shadow: 0 0 25px rgba(60, 140, 255, 0.9), 0 0 40px rgba(40, 180, 255, 0.5); }
}

.modal-right h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #70b0ff, #40e0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.modal-right p {
    font-size: 1rem;
    color: #d0e8ff;
    line-height: 1.6;
    max-width: 340px;
}

/* Animations */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}


/* Brand Logo Styling */
.modal-right .brand-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    padding: 10px;
    animation: pulseIcon 3s infinite alternate;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

/* Modal Footer Styling */
.modal-footer {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(200, 220, 255, 0.4);
    text-align: center;
    padding: 0 20px;
    pointer-events: none;
    z-index: 1;
    letter-spacing: 0.5px;
    opacity: 0.7;

    /* Optional: Fade in with modal */
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.4s;
}

.modal-footer .footer-text {
    pointer-events: auto;
    opacity: 0.8;
    font-size: 0.7rem;
    white-space: nowrap;
    text-shadow: 0 0 5px rgba(100, 180, 255, 0.3);
}

/* Optional: Glow effect on hover for version */
.modal-footer .version {
    color: #a0d8ff;
    text-shadow: 0 0 8px rgba(100, 200, 255, 0.7);
    transition: all 0.3s ease;
}

.modal-footer .copyright:hover {
    color: #a0d8ff;
    text-shadow: 0 0 8px rgba(100, 200, 255, 0.7);
    transition: all 0.3s ease;
}



.lsp {
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    color: #000; /* Fallback */
    margin: 0;
}

.lsp::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0) 0%,
        #48bcd9 30%,
        #ffffff 50%,
        #25b3d7 70%,
        rgba(0, 0, 0, 0) 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 2px rgba(0, 100, 255, 0.4));
    animation: waveTextRTL 10s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes waveTextRTL {
    0% {
        background-position: 300% 50%;
    }
    100% {
        background-position: -100% 50%;
    }
}

/* Loading Modal Animation */
.loading-modal .content {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.din {
    font-family: 'Poppins', sans-serif;
}

/* Animated Glowing Border */
@keyframes glowPulse {
    0% {
        box-shadow: 
            0 0 15px rgba(60, 140, 255, 0.5),
            0 0 30px rgba(60, 140, 255, 0.2),
            inset 0 0 15px rgba(60, 140, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 0 25px rgba(60, 140, 255, 0.8),
            0 0 50px rgba(40, 180, 255, 0.4),
            inset 0 0 20px rgba(60, 140, 255, 0.5);
    }
    100% {
        box-shadow: 
            0 0 15px rgba(60, 140, 255, 0.5),
            0 0 30px rgba(60, 140, 255, 0.2),
            inset 0 0 15px rgba(60, 140, 255, 0.3);
    }
}

/* Secondary orbiting light effect */
@keyframes glowOrbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .modal-container {
        width: 90%;
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-left,
    .modal-right {
        flex: unset;
        width: 100%;
        padding: 40px 30px;
    }

    .modal-footer {
        font-size: 0.7rem;
    }
}

/* Responsive: Stack on small screens */
@media (max-width: 768px) {
    .modal-footer {
        flex-direction: column;
        gap: 6px;
        font-size: 0.7rem;
    }

    .modal-footer .footer-text {
        font-size: 0.65rem;
    }

    .modal-container {
        flex-direction: column;
    }

    .modal-left,
    .modal-right {
        padding: 40px 30px;
    }

    .modal-right i {
        font-size: 3.5rem;
    }

    .modal-right h2 {
        font-size: 1.8rem;
    }

    .modal-right .brand-logo {
        width: 100px;
        height: 100px;
    }
}

/* Add these new styles for the footer texts */
.modal-left, .modal-right {
    position: relative; /* Needed for absolute positioning of footer */
    display: flex;
    flex-direction: column;
}

.modal-footer-text {
    position: absolute;
    bottom: 15px;
    font-size: 0.75rem;
    color: rgba(200, 220, 255, 0.4);
    text-align: center;
    padding: 0 20px;
    letter-spacing: 0.5px;
    opacity: 0.7;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.4s;
    width: 100%;
}

.modal-footer-text.copyright {
    left: 0;
    text-align: left;
    padding-left: 40px;
}

.modal-footer-text.version {
    right: 0;
    text-align: right;
    padding-right: 40px;
    color: #a0d8ff;
    text-shadow: 0 0 8px rgba(100, 200, 255, 0.7);
    transition: all 0.3s ease;
}

.modal-footer-text.copyright:hover {
    color: #a0d8ff;
    text-shadow: 0 0 8px rgba(100, 200, 255, 0.7);
    transition: all 0.3s ease;
}

/* Remove the old modal-footer styles */
.modal-footer {
    display: none; /* Hide the old footer */
}

/* Update responsive styles for the new footer texts */
@media (max-width: 768px) {
    .modal-footer-text.copyright {
        text-align: center;
        padding-left: 0;
    }
    
    .modal-footer-text.version {
        text-align: center;
        padding-right: 0;
    }
    
    .modal-footer-text {
        font-size: 0.7rem;
        padding: 0 10px;
    }
}