/* Login Modern Styles - Metronic 8 inspired */

/* Page Loading Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    transition: opacity 0.3s ease-in-out;
}

.page-loader.d-none {
    opacity: 0;
    pointer-events: none;
}

/* Login Card Animations */
.card {
    animation: slideInUp 0.5s ease-out;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Input Field Effects */
.form-control {
    transition: all 0.3s ease;
    border: 1px solid #e4e6ef;
}

.form-control:focus {
    border-color: #009ef7;
    box-shadow: 0 0 0 0.25rem rgba(0, 158, 247, 0.1);
    transform: translateY(-2px);
}

.form-control:hover:not(:focus) {
    border-color: #b5b5c3;
}

/* Button Animations */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #009ef7 0%, #0095e8 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 158, 247, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Button Ripple Effect */
.btn-primary::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

/* Indicator Progress Animation */
.indicator-progress {
    display: none;
}

.btn-primary[data-kt-indicator="on"] .indicator-label {
    display: none;
}

.btn-primary[data-kt-indicator="on"] .indicator-progress {
    display: inline-block;
}

/* Password Toggle Animation */
[data-kt-password-meter-control="visibility"] {
    cursor: pointer;
    transition: color 0.3s ease;
}

[data-kt-password-meter-control="visibility"]:hover {
    color: #009ef7 !important;
}

/* Separator Style */
.separator-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.separator-content::before,
.separator-content::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e4e6ef;
}

.separator-content::before {
    margin-right: 1rem;
}

.separator-content::after {
    margin-left: 1rem;
}

/* Link Hover Effects */
.link-primary {
    position: relative;
    transition: color 0.3s ease;
    text-decoration: none;
}

.link-primary::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #009ef7;
    transition: width 0.3s ease;
}

.link-primary:hover::after {
    width: 100%;
}

/* Logo Animation */
.text-center a img {
    transition: transform 0.3s ease;
}

.text-center a:hover img {
    transform: scale(1.05);
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
    .card {
        margin: 0 15px;
        backdrop-filter: blur(5px);
    }
    
    .card-body {
        padding: 2rem !important;
    }
    
    .fs-2x {
        font-size: 1.75rem !important;
    }
    
    .w-lg-50 {
        display: none;
    }
    
    .d-flex.flex-column.flex-lg-row.flex-column-fluid {
        background-image: url(https://www.mlclogisticscr.com/wp-content/uploads/2019/04/1600x500_11.jpg);
        background-size: cover;
        background-position: center;
        position: relative;
    }
    
    .d-flex.flex-column.flex-lg-row.flex-column-fluid::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 0;
    }
    
    .d-flex.flex-column.flex-lg-row-fluid.w-lg-50.p-10 {
        position: relative;
        z-index: 1;
    }
}

/* Dark Mode Support */
[data-theme="dark"] .card {
    background: rgba(30, 30, 40, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .form-control {
    background-color: #1e1e2e;
    border-color: #363642;
    color: #92929f;
}

[data-theme="dark"] .form-control:focus {
    background-color: #1b1b29;
    border-color: #009ef7;
    color: #ffffff;
}

[data-theme="dark"] .text-dark {
    color: #ffffff !important;
}

[data-theme="dark"] .text-gray-500 {
    color: #92929f !important;
}

[data-theme="dark"] .separator-content::before,
[data-theme="dark"] .separator-content::after {
    background: #363642;
}

/* Icon Animations */
.ki-duotone {
    transition: all 0.3s ease;
}

.position-relative:hover .ki-duotone {
    color: #009ef7 !important;
}

/* Form Validation Styles */
.fv-row.is-invalid .form-control {
    border-color: #f1416c;
}

.fv-row.is-valid .form-control {
    border-color: #50cd89;
}

/* Loading State for Form */
.form[data-kt-loading="on"] {
    position: relative;
    pointer-events: none;
}

.form[data-kt-loading="on"]::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

[data-theme="dark"] .form[data-kt-loading="on"]::after {
    background: rgba(30, 30, 40, 0.7);
}
