/* Login Theme Styles - Moved from inline CSS */

/* Background and particles */
body {
    background-image: linear-gradient(0deg, rgba(25, 26, 51), rgba(49, 49, 53, 0.3)), url("{{asset('images/client_bg.jpg')}}");
    background-size: cover;
    min-height: 100%;
    position: relative;
}

div#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 470px;
    bottom: 0;
    right: 0;
}

div#particles-js2 {
    position: absolute;
    right: 0;
    top: 0;
    width: 470px;
    bottom: 0;
    right: 0;
}

@media only screen and (max-width: 991px) {
    div#particles-js2 {
        position: absolute;
        right: 0;
        top: 0;
        width: 100%;
        bottom: 0;
        right: 0;
    }
    
    div#particles-js {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        bottom: 0;
        right: 0;
    }
}

/* Colorful glass theme login form */
.login-content {
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.15) 0%, 
        rgba(118, 75, 162, 0.15) 25%,
        rgba(251, 191, 36, 0.1) 50%,
        rgba(102, 126, 234, 0.15) 75%,
        rgba(118, 75, 162, 0.15) 100%) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 2px solid rgba(251, 191, 36, 0.3) !important;
    border-radius: 20px !important;
    box-shadow: 
        0 20px 60px rgba(102, 126, 234, 0.3),
        0 8px 32px rgba(251, 191, 36, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.login-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 40% 40%, rgba(251, 191, 36, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 60% 70%, rgba(102, 126, 234, 0.1) 0%, transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.login-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(118, 75, 162, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 50% 10%, rgba(251, 191, 36, 0.12) 1px, transparent 1px),
        radial-gradient(circle at 10% 60%, rgba(102, 126, 234, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 90% 40%, rgba(118, 75, 162, 0.08) 1px, transparent 1px);
    background-size: 50px 50px, 60px 60px, 40px 40px, 45px 45px, 55px 55px;
    background-position: 0 0, 30px 30px, 15px 15px, 45px 45px, 20px 20px;
    animation: float 20s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(1deg);
    }
    66% {
        transform: translateY(5px) rotate(-1deg);
    }
}

/* Ensure form content is above background graphics */
.login-form {
    position: relative !important;
    z-index: 2 !important;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(102, 126, 234, 0.05) 50%,
        rgba(251, 191, 36, 0.05) 100%) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-radius: 15px !important;
    padding: 30px !important;
    margin: 20px !important;
    border: 1px solid rgba(251, 191, 36, 0.2) !important;
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* Glass theme form elements */
.login-form h5 {
    color: #1a1a1a !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3) !important;
}

.login-form p {
    color: rgba(26, 26, 26, 0.8) !important;
    margin-bottom: 30px !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2) !important;
}

.login-form .form-group label {
    color: rgba(26, 26, 26, 0.9) !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2) !important;
}

.login-form .form-control {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(102, 126, 234, 0.1) 100%) !important;
    border: 2px solid rgba(251, 191, 36, 0.3) !important;
    color: #1a1a1a !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    box-shadow: 
        0 4px 15px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.login-form .form-control:focus {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(102, 126, 234, 0.2) 100%) !important;
    border-color: rgba(251, 191, 36, 0.8) !important;
    box-shadow: 
        0 0 0 3px rgba(251, 191, 36, 0.3),
        0 8px 25px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    color: #1a1a1a !important;
    transform: translateY(-2px) !important;
}

.login-form .form-control::placeholder {
    color: rgba(26, 26, 26, 0.6) !important;
}

.login-form .btn-primary {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.9) 0%, 
        rgba(251, 191, 36, 0.8) 50%,
        rgba(118, 75, 162, 0.9) 100%) !important;
    border: 2px solid rgba(251, 191, 36, 0.5) !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.4),
        0 4px 15px rgba(251, 191, 36, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    position: relative !important;
    overflow: hidden !important;
}

.login-form .btn-primary:hover {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 1) 0%, 
        rgba(251, 191, 36, 0.9) 50%,
        rgba(118, 75, 162, 1) 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 
        0 12px 35px rgba(102, 126, 234, 0.5),
        0 8px 20px rgba(251, 191, 36, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(251, 191, 36, 0.8) !important;
}

.login-form .checkbox label {
    color: rgba(26, 26, 26, 0.8) !important;
    font-size: 14px !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2) !important;
}

.login-form .checkbox label a {
    color: rgba(102, 126, 234, 0.9) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.login-form .checkbox label a:hover {
    color: rgba(102, 126, 234, 1) !important;
    text-decoration: underline !important;
}

.login-form .register-link p {
    color: rgba(26, 26, 26, 0.8) !important;
    font-size: 14px !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2) !important;
}

.login-form .register-link p a {
    color: rgba(102, 126, 234, 0.9) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.login-form .register-link p a:hover {
    color: rgba(102, 126, 234, 1) !important;
    text-decoration: underline !important;
}

.login-form .has-eye .toggle-password {
    color: rgba(26, 26, 26, 0.6) !important;
}

.login-form .has-eye .toggle-password:hover {
    color: rgba(26, 26, 26, 0.9) !important;
}

/* Glass theme alerts */
.login-form .alert-success {
    background: rgba(16, 185, 129, 0.2) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #10b981 !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.login-form .alert-danger {
    background: rgba(239, 68, 68, 0.2) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: #ef4444 !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* Add some geometric shapes */
.login-content .geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.login-content .geometric-shapes::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.login-content .geometric-shapes::after {
    content: '';
    position: absolute;
    bottom: 30%;
    left: 15%;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, rgba(118, 75, 162, 0.1), rgba(102, 126, 234, 0.1));
    transform: rotate(45deg);
    animation: rotate 8s linear infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(45deg);
    }
    100% {
        transform: rotate(405deg);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .login-content::after {
        background-size: 30px 30px, 35px 35px, 25px 25px, 30px 30px, 35px 35px;
    }
    
    .login-content .geometric-shapes::before {
        width: 40px;
        height: 40px;
        top: 15%;
        right: 5%;
    }
    
    .login-content .geometric-shapes::after {
        width: 30px;
        height: 30px;
        bottom: 25%;
        left: 10%;
    }
}
