* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    outline: none;
}

@keyframes galaxyRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}




@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0015 0%, #1a0033 20%, #2d1b4e 40%, #4a1b6b 60%, #2d1b4e 80%, #0a0015 100%);
    background-size: 400% 400%;
    animation: galaxyRotate 20s ease infinite;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(1px 1px at 15% 90%, white, transparent),
        radial-gradient(1px 1px at 45% 20%, white, transparent),
        radial-gradient(2px 2px at 70% 40%, white, transparent),
        radial-gradient(1px 1px at 25% 60%, white, transparent);
    background-size: 200% 200%;
    animation: twinkle 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 10;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 100vh !important;
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
}

#pwd-container {
    margin: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

#pwd-container > div {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 20px !important;
}

#pwd-container .col-md-4:first-child {
    display: none !important;
}

#pwd-container .col-md-4:nth-child(2) {
    max-width: 450px;
    width: 100%;
}

.login-form {
    position: relative;
    z-index: 10;
}

.login-form::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}

.login-form form {
    color: #fff;
    background: rgba(20, 10, 40, 0.8);
    backdrop-filter: blur(20px);
    padding: 35px 40px;
    border-radius: 18px;
    border: 1px solid rgba(138, 43, 226, 0.4);
    box-shadow: 0 8px 32px 0 rgba(138, 43, 226, 0.3), inset 0 0 40px rgba(138, 43, 226, 0.05);
    position: relative;
    overflow: hidden;
}

.login-form form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(138, 43, 226, 0.1),
        transparent
    );
    pointer-events: none;
}

.login-form form::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(75, 0, 130, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.login-form img.img-responsive {
    display: block;
    margin: 0 auto 25px;
    position: relative;
    z-index: 1;
    max-width: 160px;
    filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.6));
}

.login-form input,
.login-form button {
    font-size: 16px;
    margin: 12px 0;
    position: relative;
    z-index: 1;
}

.form-control {
    position: relative;
    font-size: 16px;
    height: auto;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 10px;
    color: #fff;
    transition: all 0.3s ease;
    text-align: center;
}

.input-lg {
    font-size: 16px;
    padding: 12px 16px;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(138, 43, 226, 0.9);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.6), inset 0 0 15px rgba(138, 43, 226, 0.2);
    color: #fff;
    transform: scale(1.02);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-primary {
    background: linear-gradient(135deg, #8a2be2 0%, #4b0082 50%, #6a0dad 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #9d4edd 0%, #5a0099 50%, #7b2cbf 100%);
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.9), 0 0 80px rgba(138, 43, 226, 0.5), 0 5px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
    background-position: 100% 0;
}

.btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.8), 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login-form a {
    color: #b19cd9;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    z-index: 1;
    text-align: center;
}

.login-form a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8a2be2, #4b0082);
    transition: width 0.3s ease;
}

.login-form a:hover {
    color: #d8bfd8;
    text-shadow: 0 0 15px rgba(138, 43, 226, 0.9);
}

.login-form a:hover::after {
    width: 100%;
}

.login-form > div,
.login-form form > div {
    text-align: center;
    position: relative;
    z-index: 1;
}

.form-links {
    display: none !important;
}

span.login-text {
    display: none !important;
}

ul.lang {
    padding: 0;
    margin: 0;
    display: inline-block;
    list-style: none;
    position: absolute;
    z-index: 100;
    top: 10px;
    right: 10px;
}

ul.lang img {
    padding: 3px;
    margin: 0;
    display: inline-block;
    border-radius: 50%;
    border: 2px solid rgba(138, 43, 226, 0.5);
    transition: all 0.3s ease;
    background: rgba(20, 10, 40, 0.6);
}

ul.lang img:hover {
    border-color: rgba(138, 43, 226, 1);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.9);
    transform: scale(1.1);
}

ul.lang a {
    text-decoration: none;
}

ul.lang .dropdown-menu {
    background: rgba(20, 10, 40, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(138, 43, 226, 0.5);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

ul.lang .dropdown-menu li a {
    color: #fff;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

ul.lang .dropdown-menu li a:hover {
    background: rgba(138, 43, 226, 0.4);
    box-shadow: inset 0 0 10px rgba(138, 43, 226, 0.3);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.05) inset;
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.6), inset 0 0 15px rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.9);
    transition: background-color 5000s ease-in-out 0s;
}

.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #8a2be2, #4b0082);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.8);
    z-index: 2;
}
