.login-cover {
    background: url(/core/images/1.png) no-repeat;
    background-size: cover
}
/* Login Card Animations */
.login-card {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 100px rgba(44, 90, 160, 0.1);
    border: none;
    border-radius: 1.25rem;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    max-width: 460px;
    width: 100%;
    backdrop-filter: blur(10px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    position: relative;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c5aa0 0%, #4a90e2 50%, #2c5aa0 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-card .card-body {
    padding: 2.5rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 576px) {
    .login-card .card-body {
        padding: 1.5rem;
    }
}

/* Logo Animation */
.logo-container {
    animation: fadeIn 0.8s ease-out 0.2s backwards;
    position: relative;
}

.logo-container::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Input Groups */
.input-group-modern {
    animation: fadeIn 0.6s ease-out 0.3s backwards;
}

.input-group-modern:nth-child(2) {
    animation-delay: 0.4s;
}

.input-group-modern .form-control {
    border-radius: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 3rem;
    font-size: 1rem;
}

.input-group-modern .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(44, 90, 160, 0.15), 0 8px 16px rgba(44, 90, 160, 0.2);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.input-group-modern .form-control:valid {
    border-color: rgba(34, 197, 94, 0.5);
}

.input-group-modern .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-group-modern .form-control-feedback-icon {
    transition: all 0.3s ease;
}

.input-group-modern .form-control:focus + .form-control-feedback-icon i {
    color: var(--primary) !important;
    transform: scale(1.1);
}

/* Password Toggle */
.password-toggle {
    transition: all 0.2s ease;
    cursor: pointer;
    opacity: 0.7;
}

.password-toggle:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1) !important;
}

.password-toggle i {
    font-size: 1.25rem;
}

/* Button Styles */
.btn-login {
    border-radius: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.875rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, #4a90e2 100%);
    border: none;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(44, 90, 160, 0.4), 0 0 40px rgba(44, 90, 160, 0.2);
}

.btn-login:active {
    transform: translateY(-1px);
}

.btn-login.loading .btn-text {
    opacity: 0.7;
}

.btn-login.loading .spinner-border {
    display: inline-block !important;
}

/* Checkbox and Links */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    cursor: pointer;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: rgba(255, 255, 255, 0.05);
    margin-top: 0;
    flex-shrink: 0;
}

.form-check-input:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.08);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.2);
}

.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(44, 90, 160, 0.15);
}

.form-check-label {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
    margin: 0;
}

.form-check:hover .form-check-label {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Links */
a {
    transition: all 0.2s ease;
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* Footer Links */
.form-text a {
    transition: color 0.2s ease;
}

.form-text a:hover {
    color: var(--primary) !important;
}

/* Alert Styles */
#login_status .alert {
    border-radius: 0.75rem;
    border: none;
    backdrop-filter: blur(10px);
}

#login_status .alert-success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-left: 4px solid #22c55e;
}

#login_status .alert-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-left: 4px solid #ef4444;
}

/* Modal Styles */
.terms-content h6, .cookie-content h6 {
    color: #2c5aa0;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.terms-content h6:first-child, .cookie-content h6:first-child {
    margin-top: 0;
}
.terms-content p, .cookie-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}
.terms-content ul, .cookie-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.terms-content li, .cookie-content li {
    margin-bottom: 0.25rem;
    line-height: 1.5;
}
.cookie-type h6 {
    margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .login-card {
        border-radius: 1rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }
}

/* Alert animations */
#login_status > div {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating particles effect */
.login-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.1) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Focus glow effect */
.form-control:focus {
    animation: focusGlow 2s ease-in-out infinite;
}

@keyframes focusGlow {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(44, 90, 160, 0.15), 0 8px 16px rgba(44, 90, 160, 0.2);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(44, 90, 160, 0.25), 0 8px 16px rgba(44, 90, 160, 0.3);
    }
}

/* Shake animation for validation errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.shake {
    animation: shake 0.5s;
    border-color: #ef4444 !important;
}

/* Page Preloader */
.page-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    animation: preloaderFadeIn 0.8s ease-out;
}

@keyframes preloaderFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.spinner-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #2c5aa0;
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.spinner-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: #4a90e2;
    animation-duration: 2s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: #6ab4ff;
    animation-duration: 1s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.preloader-logo {
    max-width: 80px;
    height: auto;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.95);
    }
}

.loading-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    animation: loadingDots 1.5s steps(4, end) infinite;
}

@keyframes loadingDots {
    0%, 20% {
        content: 'Loading';
    }
    40% {
        content: 'Loading.';
    }
    60% {
        content: 'Loading..';
    }
    80%, 100% {
        content: 'Loading...';
    }
}

/* Hide page content until loaded */
body.loading .page-content {
    opacity: 0;
}

body.loaded .page-content {
    opacity: 1;
    animation: contentFadeIn 0.6s ease-out;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}