/* Main Login Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.login-page {
    height: 100vh;
    width: 100vw;
    background-color: #f8f9fa;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.login-container {
    width: 100%;
    height: 100%;
    display: flex;
    background-color: #fff;
    position: relative;
}

.login-image-container {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.login-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.login-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}



.login-form-container {
    width: 500px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    position: relative;
    z-index: 2;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.login-form-wrapper {
    padding: 50px;
    width: 100%;
    max-width: 450px;
}

.login-logo {
    max-width: 180px;
    margin-bottom: 30px;
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.5;
}

.login-form .form-label {
    font-weight: 600;
    color: #0056b3;
    margin-bottom: 10px;
    font-size: 15px;
}

.login-form .form-control {
    height: 55px;
    border-radius: 8px;
    border-left: none;
    border-color: #e0e0e0;
    font-size: 15px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.login-form .input-group {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin-bottom: 25px;
}

.login-form .input-group-text {
    background-color: #fff;
    border-right: none;
    border-color: #e0e0e0;
    color: #0056b3;
    font-size: 18px;
    width: 50px;
    display: flex;
    justify-content: center;
}

.login-form .form-control:focus {
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.1);
    border-color: #0056b3;
}

.login-form .input-group-text:first-child {
    border-radius: 8px 0 0 8px;
}

.login-form .input-group-text:last-child {
    border-radius: 0 8px 8px 0;
    border-left: none;
    border-right: 1px solid #e0e0e0;
    cursor: pointer;
}

.forgot-link {
    color: #0056b3;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: #003d80;
    text-decoration: none;
}

.btn-login {
    height: 55px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    background-color: #0056b3;
    border-color: #0056b3;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.2);
    margin-top: 15px;
}

.btn-login:hover {
    background-color: #004494;
    border-color: #004494;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.4);
}

.form-check-label {
    color: #6c757d;
    font-size: 14px;
}

.form-check-input:checked {
    background-color: #0056b3;
    border-color: #0056b3;
}

.alert {
    border-radius: 5px;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .login-container {
        height: auto;
    }

    .login-image-container {
        display: none;
    }

    .login-form-container {
        width: 100%;
        padding: 30px;
    }

    .login-form-wrapper {
        padding: 20px 0;
    }
}

/* Animation effects */
.login-form .form-control,
.login-form .input-group-text,
.btn-login {
    transition: all 0.3s ease;
}

.login-form .form-control:focus+.input-group-text,
.login-form .input-group-text+.form-control:focus {
    border-color: #80bdff;
}

/* Custom checkbox style */
.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0.2em;
}

.password-toggle:hover {
    color: #0056b3;
}

/* Clean button styles */
.btn-clean {
    padding: 4px 4px;
    font-size: 12px;
    border-radius: 3px;
    font-weight: normal;
}

/* Compact table styles */
.table-compact {
    font-size: 12px;
}

.table-compact th, 
.table-compact td {
    padding: 4px 4px !important;
    margin: 0 !important;
    vertical-align: middle;
    border-width: 1px;
    line-height: 1.2;
}

.table-compact th {
    font-weight: 600;
    background-color: #49467b !important;
}

/* Smaller badge */
.badge-small {
    font-size: 10px;
    padding: 2px 6px;
}

/* Compact form controls */
.form-control-sm-custom {
    padding: 2px 4px;
    font-size: 12px;
    height: auto;
}

.form-label-sm {
    font-size: 11px;
    margin-bottom: 2px;
}

td, th{
    text-wrap-mode: nowrap;
}

.badge-primary{
    background-color: #004494!important;
}

.modal-header{
    background-color: #49467b !important;
    color: white;
}

.modal-header button{
    color: white !important;
}

/* Scrolling Text Animation */
.scrolling-text-container {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4px 0;
    margin: 0;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.scrolling-text {
    white-space: nowrap;
    animation: scroll-with-fade 50s linear infinite;
    width: 100%;
}

.scrolling-text p {
    margin: 0;
    padding: 0;
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    display: inline-block;
}

@keyframes scroll-with-fade {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* Pause animation on hover */
.scrolling-text-container:hover .scrolling-text {
    animation-play-state: paused;
}

/* Responsive scrolling text */
@media (max-width: 768px) {
    .scrolling-text-container {
        padding: 6px 0;
    }
    
    .scrolling-text p {
        font-size: 12px;
    }
}