﻿@import url('../fonts/inter/style.css');


body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f5f6fa !important;
    background-size: cover !important;
    color: #343c6a;
}

/* ===== Layout ===== */
.login-page {
    background: url("../images/bg-login.png") no-repeat fixed center;
    min-height: 100dvh;
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 0;
    overflow: clip;
}

.login-page .container {
    max-width: 1132px;
    width: 100%;
    height: 441px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.info-wrapper,
.login-box-wrapper {
    align-self: flex-start;
}

/* Left column text */
.info-wrapper {
    display: flex;
    flex-direction: column;
}

.website_title {
    text-align: left;
    /*margin-top: 20px;*/
    margin-bottom: 32px;
}

.website_title p:first-child {
    font-weight: 700;
    font-size: 36px;
    color: rgba(255,255,255,0.6);
    margin-block-end: 0;
    line-height: 1.2;
    /*letter-spacing: 1px; */
}

.website_title p:last-child {
    line-height: 1.1714;
    font-weight: 700;
    font-size: 80px;
    color: white;
    margin-block-end: 0;
    margin-block-start: 0;
    margin-bottom: 0;
}

/* Right column: white card */
.login-box-wrapper {
    padding: 48px;
    border-radius: 10px;
    width: 496px;
    background-color: white;
}

.login-box-wrapper .text-danger {
    color: rgba(247, 82, 82, 1) !important;
    font-size: 0.875rem !important;
    line-height: 20px !important;
    margin-top: 6px !important;
    display: block;
}

.login-logo {
    display: block;
    width: 223px;
    height: 50px;
    margin: 0 auto 32px;
    object-fit: contain;
}

.form-title {
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 20px;
    margin-bottom: 4px;
    color: #343C6A;
}

.checkbox {
    padding-left: 0 !important;
}

.icheck-primary {
    --cb-size: 20px;
    --cb-bg: #fff;
    --cb-border: #EAE8F1;
    --cb-checked: #364797;
    --cb-ring: rgba(54,71,151,0.14);

    --tick-w: calc(var(--cb-size) * 0.5);
    --tick-h: calc(var(--cb-size) * 0.3);
    --tick-thickness: calc(var(--cb-size) * 0.10);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.icheck-primary .form-check-input-login {
    appearance: none;
    -webkit-appearance: none;
    width: var(--cb-size);
    height: var(--cb-size);
    margin: 0;
    border: 0;
    background: transparent;
    position: relative;
    cursor: pointer;
    outline: none;
    vertical-align: middle;
}

.icheck-primary .form-check-input-login::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--cb-bg);
    box-shadow: inset 0 0 0 1px var(--cb-border);
    transition: background .15s ease, box-shadow .15s ease;
    border-radius: 4px;
}

.icheck-primary .form-check-input-login::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: var(--tick-w);
    height: var(--tick-h);
    border-left: var(--tick-thickness) solid #fff;
    border-bottom: var(--tick-thickness) solid #fff;
    transform-origin: 40% 55%;
    /*transform: translate(-50%, -58%) rotate(-45deg);*/
    opacity: 0;
    transition: opacity .12s ease, transform .12s ease;
    border-radius: 1px;
}

.icheck-primary .form-check-input-login:checked::before{
    background: var(--cb-checked);
    box-shadow: none;
}

.icheck-primary .form-check-input-login:checked::after{
    opacity: 1;
    transform: translate(-50%, -55%) rotate(-45deg);
}

.icheck-primary .form-check-input-login:disabled{
    cursor: not-allowed;
    opacity: .6;
}

.icheck-primary label {
    font-weight: 700 !important;
    font-size: 0.875rem;
    line-height: 20px;
    color: #343C6A;
}

.login-box-wrapper .form-group:nth-of-type(1) {
    margin-bottom: 16px !important;
}

.login-box-wrapper .form-group:nth-of-type(2) {
    margin-bottom: 12px !important;
}

.login-btn {
    font-weight: 700;
    padding-top: 10px;
    padding-bottom: 10px;
}


/* ===== INPUT ===== */

.input-container {
    height: 48px;
    display: flex;
    align-items: center;
    background-color: white;
    border: 1px solid #EAE8F1;
    border-radius: 4px;
    padding: 0 12px;
    gap: 8px;
}

.input-container--error {
    border: 1px solid rgba(247, 82, 82, 1);
}

.input-container .form-control {
    border: none;
    outline: none;
    height: 20px;
    color: #343C6A;
    min-width: 0;
    width: 95% !important;
    box-sizing: border-box;
    background: #ffffff !important;
    padding: 12px 36px 12px 0;
}

.form-control {
    font-size: 0.875rem;
}

.form-control:focus {
    box-shadow: none !important;
}

.input-container i {
    color: rgba(102, 112, 133, 1);
}

.form-control[type=password].no-reveal-password::-ms-reveal,
.form-control[type=password].no-reveal-password::-ms-clear {
    display: none;
}

.input-container .form-control {
    color-scheme: light;
}

.input-container .form-control:-webkit-autofill,
.input-container .form-control:-webkit-autofill:hover,
.input-container .form-control:-webkit-autofill:focus,
.input-container .form-control:-webkit-autofill:active {
    -webkit-text-fill-color: #343C6A !important; 
    caret-color: #343C6A;
    background-color: #FFFFFF !important;       
    -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset !important; 
    box-shadow: 0 0 0 1000px #FFFFFF inset !important;
    background-clip: content-box !important;     
    transition: background-color 9999s ease-in-out 0s; 
}

input:-webkit-autofill {
    -webkit-text-fill-color: #343C6A !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 0 0 1000px #FFFFFF inset !important;
}

.input-container .form-control::placeholder {
    color: rgba(52, 60, 106, 0.6);
    opacity: 1;      
}


/* ===== Button ===== */

.login-btn {
    height: 48px;
    line-height: 48px;
    background-color: #364797 !important;
    border-color: #364797 !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 4px;
    width: 100%;
    padding-top: 0 !important;
}

.login-btn:hover, .login-btn:focus {
    filter: brightness(0.95);
    color: #fff !important;
}

.login-box-wrapper .form-group {
    margin-bottom: 16px;
}

.nav-box {
    margin: 8px 0 24px;
}

/* ===== Responsive ===== */

@media (max-width: 1024px) {
    .login-page .container {
        width: 92%;
    }

    .login-box-wrapper {
        width: 446px;
    }

    .website_title p:last-child {
        font-size: 56px;
        line-height: 1.1714;
    }

    .website_title p:first-child {
        font-size: 25px;
        line-height: 1.64;
        margin-bottom: 6px;
    }
}

@media (max-width: 768px) {
    .login-page {
        min-height: auto;
        overflow: auto;
    }

    .login-page .container {
        max-width: 446px;
        height: auto;
        flex-direction: column;
        gap: 24px;
        padding: 20px;
    }

    .website_title {
        margin-bottom: 16px;
        margin-top: 16px;
    }

    .login-container {
        width: 100%;
        padding: 10px 16px;
    }

    .login-box-wrapper {
        width: 446px;
        align-self: center;
        padding: 10px;
        margin-top: 0 !important;
    }

    .login-box-wrapper .form-group {
        margin-bottom: 16px;
    }

    .login-box-wrapper .form-group:nth-of-type(2) {
        margin-bottom: 8px !important;
    }

    .login-box-wrapper .login-logo {
        margin-top: 48px;
    }

    .login-box-wrapper form {
        padding: 0 48px 48px 48px;
    }

}

/* ===== Others ===== */
.positionEye {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
    z-index: 9999;
}

.font-size-12 {
    font-size: 12px !important;
}

.p-l-3 {
    padding-left: 3px !important;
}


.input-container:has(.input-validation-error) {
    border: 1px solid rgba(247, 82, 82, 1) !important;
}

.back-container {
    font-style: italic;
    font-size: 0.875rem !important;
}
