* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f6f9;
}

body {
    height: 100vh;
    overflow: hidden;
}

.login-page {
    display: flex;
    height: 100vh;
    width: 100%;
    background: #f4f6f9;
    overflow: hidden;
}

.login-left {
    width: 54%;
    height: 100vh;
    background: linear-gradient(180deg, #4679c9 0%, #4a7fd1 40%, #3e73c5 100%);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.login-right {
    width: 46%;
    height: 100vh;
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 28px;
    overflow: hidden;
}

.left-illustration-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(90deg, #4a7fd1 0%, #6ea1e3 40%, #dbe6f1 100%);
}

.left-illustration {
    width: min(85%, 680px);
    max-height: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.left-top {
    padding: 70px 50px 25px;
    text-align: center;
    color: #fff;
}

    .left-top h1 {
        margin: 0;
        font-size: 28px;
        font-weight: 700;
        letter-spacing: .3px;
    }

    .left-top p {
        margin: 12px 0 0;
        font-size: 16px;
        font-weight: 400;
        opacity: .95;
    }



input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.login-panel {
    width: 100%;
    max-width: 440px;
    position: relative;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(76, 114, 176, 0.12);
    border-radius: 24px;
    padding: 56px 30px 22px;
    box-shadow: 0 20px 45px rgba(44, 79, 140, 0.10);
    backdrop-filter: blur(6px);
}

.login-title {
    margin: 0 0 8px;
    font-size: 34px;
    font-weight: 700;
    color: #162033;
    text-align: left;
    letter-spacing: -0.5px;
}

.login-subtitle {
    margin: 0 0 18px;
    font-size: 14px;
    color: #6d7a90;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 14px;
}

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #50607b;
    margin-bottom: 8px;
}

.ghost .form-control,
#ddlcompany.form-control,
#rate.form-control {
    width: 100%;
    height: 56px;
    border: 1px solid #d7e1ee;
    border-radius: 14px;
    background: #f8fbff;
    box-shadow: none;
    font-size: 15px;
    color: #1f2c3f;
    padding: 14px 16px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

    .ghost .form-control::placeholder,
    #rate.form-control::placeholder {
        color: #8a97ab;
        opacity: 1;
    }

    .ghost .form-control:focus,
    #ddlcompany.form-control:focus,
    #rate.form-control:focus {
        border-color: #5b84d6;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(91, 132, 214, 0.12);
    }

.input-group {
    width: 100%;
    display: flex;
    align-items: stretch;
}

    .input-group .form-control {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

.ghost .input-group-addon {
    width: 56px;
    border: 1px solid #d7e1ee;
    border-left: 0;
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
    background: #f8fbff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #60789f;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

    .ghost .input-group-addon:hover {
        background: #eef4fb;
        color: #3f73c7;
    }

.rate-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #50607b;
    margin-bottom: 8px;
}

.btn-login {
    width: 100%;
    height: 58px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #4f7aca 0%, #3f6fc7 100%) !important;
    color: #fff !important;
    font-size: 17px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: .2px;
    box-shadow: 0 14px 28px rgba(63, 111, 199, 0.24);
    margin-top: 10px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

    .btn-login:hover,
    .btn-login:focus {
        background: linear-gradient(135deg, #466fbe 0%, #365fb0 100%) !important;
        color: #fff !important;
        box-shadow: 0 18px 34px rgba(63, 111, 199, 0.28);
        transform: translateY(-1px);
    }

.footer-note {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: #8a94a6;
    letter-spacing: 0.2px;
}

.error-badge {
    position: absolute;
    top: 16px;
    right: 18px;
    background: #d9534f;
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(217, 83, 79, .22);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
    z-index: 20;
    max-width: calc(100% - 36px);
    overflow: hidden;
    text-overflow: ellipsis;
}

    .error-badge.show {
        opacity: 1;
        transform: translateY(0);
    }

.has-error .form-control,
.has-error .input-group-addon {
    border-color: #d9534f !important;
    background: #fff8f8 !important;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #6b7f9f 50%), linear-gradient(135deg, #6b7f9f 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(50% - 3px), calc(100% - 14px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 42px !important;
}

@media (max-width: 991px) {
    .login-left {
        width: 50%;
    }

    .login-right {
        width: 50%;
        height: 100vh;
        padding: 18px 16px;
        overflow: hidden;
    }

    .left-top {
        padding: 50px 28px 18px;
    }

        .left-top h1 {
            font-size: 24px;
        }

        .left-top p {
            font-size: 14px;
        }

    .login-panel {
        max-width: 390px;
        padding: 48px 20px 18px;
        border-radius: 20px;
    }

    .login-title {
        font-size: 30px;
    }

    .login-subtitle {
        font-size: 13px;
    }
}

@media (max-width: 991px) {
    .login-page {
        display: block;
    }

    .login-left {
        display: none;
    }

    .login-right {
        width: 100%;
        height: 100vh;
        padding: 20px 14px;
        overflow: hidden;
        background: linear-gradient(180deg, #4a7fd1 0%, #edf3f9 220px);
    }

    .login-panel {
        max-width: 100%;
        border-radius: 20px;
        padding: 44px 16px 18px;
        box-shadow: 0 16px 32px rgba(0,0,0,.10);
    }

    .login-title {
        font-size: 28px;
        margin-bottom: 6px;
    }

    .login-subtitle {
        margin-bottom: 22px;
        font-size: 13px;
    }

    .footer-note {
        margin-top: 20px;
        font-size: 12px;
    }

    .error-badge {
        top: 12px;
        right: 12px;
        font-size: 11px;
        padding: 6px 10px;
        max-width: calc(100% - 24px);
    }
}
