html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fff;
    overflow: hidden;
}

#login-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    opacity: 0;
    z-index: 9999;
    background: linear-gradient(90deg, #475b8a 0%, #33b1ff 45%, #475b8a 100%);
    box-shadow: 0 2px 12px rgba(71, 91, 138, 0.35);
    transition: opacity 0.2s ease;
}

#login-progress.is-loading {
    opacity: 1;
    animation: login-progress-bar 1.4s ease-in-out infinite;
}

#page-container {
    display: flex;
    flex-wrap: wrap;
    height: 100vh;
    width: 100%;
}

.login-brand-side {
    width: 40%;
    background: linear-gradient(135deg, #475b8a 0%, #2a3552 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px;
    color: white;
    position: relative;
    box-sizing: border-box;
}

.brand-content {
    position: relative;
    z-index: 10;
}

.brand-logo {
    margin-bottom: 20px;
}

.brand-logo i {
    font-size: 50px;
    margin-bottom: 15px;
    display: block;
}

.brand-logo h1 {
    font-size: 60px;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    letter-spacing: -1px;
}

.brand-system-slogan {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    opacity: 0.82;
}

.brand-tagline {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.9;
    margin-top: 15px;
    max-width: 300px;
}

.brand-features {
    padding-left: 0;
    list-style: none;
}

.brand-features li {
    margin: 12px 0;
    font-size: 15px;
}

.brand-features i {
    margin-right: 8px;
}

.brand-footer {
    position: absolute;
    bottom: 30px;
    left: 80px;
    font-size: 12px;
    opacity: 0.6;
}

.brand-footer a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.login-form-side {
    width: 60%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

.login-form-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(240, 244, 248, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(240, 244, 248, 0.5) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

.login-form-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 5;
    border: solid 1px #0a4a772e;
    padding: 28px;
    border-radius: 15px;
    box-shadow: -9px 11px 14px 0 #00000014;
    background: #fff;
}

.company-logo {
    text-align: center;
    margin-bottom: 36px;
}

.company-logo img {
    max-height: 84px;
    width: auto;
    max-width: 100%;
}

.login-title {
    text-align: center;
    margin-bottom: 24px;
}

.login-title h2 {
    margin: 0 0 8px;
    color: #475b8a;
    font-weight: 700;
}

.login-title p {
    margin: 0;
    color: #6c757d;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    color: #495057;
    transition: all 0.2s ease;
    box-sizing: border-box;
    height: 52px;
}

.form-control:focus {
    border-color: #475b8a;
    outline: none;
    box-shadow: 0 0 0 4px rgba(71, 91, 138, 0.1);
}

.form-control::placeholder {
    color: #adb5bd;
}

.login-buttons {
    margin-top: 35px;
}

.btn-success {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    background: #475b8a;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease, opacity 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(71, 91, 138, 0.2);
}

.btn-success:hover {
    background: #3c4e76;
    transform: translateY(-1px);
}

.btn-success:active {
    transform: translateY(1px);
}

.btn-success:disabled {
    opacity: 0.7;
    cursor: wait;
}

.login-hint {
    margin: 18px 0 0;
    text-align: center;
    color: #6c757d;
    font-size: 13px;
}

.login-link {
    display: block;
    width: 100%;
    margin-top: 12px;
    text-align: center;
    color: #475b8a;
    font-size: 14px;
    text-decoration: none;
}

.login-link:hover,
.login-link:focus {
    color: #3c4e76;
    text-decoration: none;
}

.login-reset-form {
    display: none;
    margin-top: 10px;
}

.login-reset-form.is-visible {
    display: block;
}

.login-reset-title {
    margin-bottom: 20px;
}

.checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox input {
    margin-right: 10px;
    width: 16px;
    height: 16px;
}

.checkbox label {
    font-size: 14px;
    color: #6c757d;
    cursor: pointer;
}

.showHidePw {
    position: absolute;
    right: 15px;
    top: 42px;
    color: #adb5bd;
    cursor: pointer;
    font-size: 18px;
}

#loading {
    display: none;
}

@media (max-width: 900px) {
    .login-brand-side {
        display: none;
    }

    .login-form-side {
        width: 100%;
    }

    .login-form-container {
        max-width: 100%;
    }
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 20px 25px;
}

.modal-title {
    color: #475b8a;
    font-weight: 700;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 20px 25px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.jconfirm .jconfirm-box.jconfirm-type-success {
    border-top: solid 7px #475b8a !important;
    animation-name: type-green;
}

.jconfirm .jconfirm-box.jconfirm-type-success .jconfirm-title-c .jconfirm-icon-c {
    color: #475b8a !important;
}

.jconfirm .jconfirm-box.jconfirm-type-info {
    border-top: solid 7px #4f9da6 !important;
    animation-name: type-blue;
}

.jconfirm .jconfirm-box.jconfirm-type-info .jconfirm-title-c .jconfirm-icon-c {
    color: #4f9da6 !important;
}

.toast-container {
    z-index: 2000;
}

@keyframes login-progress-bar {
    0% {
        width: 0;
        left: 0;
    }
    50% {
        width: 65%;
        left: 0;
    }
    100% {
        width: 100%;
        left: 0;
    }
}
