/* assets/css/login-style.css - Final Overhaul for Professional Look & Border Fix */
html, body.login {
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.login {
    background-color: #f0f2f5; /* Màu nền xám rất nhạt, sạch sẽ */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.clp-ak-login-page-container {
    display: flex;
    width: 920px; /* Tăng nhẹ chiều rộng để cân đối hơn */
    max-width: 100%;
    min-height: 580px;
    background-color: transparent !important; /* QUAN TRỌNG: Container chính trong suốt */
    box-shadow: none !important; /* QUAN TRỌNG: Bỏ hoàn toàn shadow của container chính */
    border: none !important; /* QUAN TRỌNG: Bỏ hoàn toàn border của container chính */
    border-radius: 12px; /* Bo góc sẽ được áp dụng cho các cột con */
    overflow: visible; /* Cho phép shadow của cột con tràn ra ngoài */
}

/* --- Cột thông tin bên trái --- */
.clp-ak-left-column {
    width: 45%;
    background-color: #B71C1C; /* Màu đỏ sẫm, trang trọng */
    color: #ffffff;
    padding: 50px 40px; /* Tăng padding dọc */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 12px 0 0 12px; /* Bo góc cho cột trái */
    box-shadow: -2px 0px 25px rgba(0, 0, 0, 0.06); /* Shadow nhẹ ở cạnh phải để tách biệt */
    position: relative;
    z-index: 1; /* Đảm bảo cột trái nổi lên trên nếu có overlap nhỏ do shadow */
}
.clp-ak-custom-info .clp-ak-header { margin-bottom: 30px; text-align: left; }
.clp-ak-custom-info .clp-ak-logo-area { display: flex; align-items: center; justify-content: flex-start; margin-bottom: 12px; }
.clp-ak-custom-info .clp-ak-logo-area::before {
    content: ""; display: inline-block; width: 40px; height: 28px; margin-right: 12px;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/2/21/Flag_of_Vietnam.svg/125px-Flag_of_Vietnam.svg.png');
    background-size: contain; background-repeat: no-repeat;
}
.clp-ak-custom-info .clp-ak-main-title { font-size: 26px; font-weight: 500; text-transform: uppercase; line-height: 1.3; }
.clp-ak-custom-info .clp-ak-sub-title { font-size: 14px; opacity: 0.90; line-height: 1.55; margin-top: 6px; }

.clp-ak-support-info, .clp-ak-app-download { margin-top: 30px; margin-bottom: 20px; text-align: left; }
.clp-ak-support-info h3, .clp-ak-app-download h3 {
    font-size: 16px; font-weight: 500; margin-bottom: 12px; text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 8px; display: block;
}
.clp-ak-support-info p { margin: 7px 0; font-size: 13.5px; opacity: 0.90; }

.clp-ak-qr-codes { display: flex; gap: 22px; justify-content: flex-start; margin-top: 8px;}
.clp-ak-qr-item { text-align: center; }
.clp-ak-qr-item img {
    width: 88px; height: 88px; border: 2px solid #fff; padding: 3px; background: #fff;
    border-radius: 6px; margin-bottom: 7px; box-shadow: 0 3px 7px rgba(0,0,0,0.12);
}
.clp-ak-qr-item .clp-ak-qr-placeholder {
    width: 88px; height: 88px; background: rgba(255,255,255,0.15);
    border: 1px dashed rgba(255,255,255,0.4); display: flex; align-items: center;
    justify-content: center; font-size: 11px; border-radius: 6px; margin-bottom: 7px; color: rgba(255,255,255,0.7);
}
.clp-ak-qr-item span { display: block; font-size: 12.5px; font-weight: 500; opacity: 0.95; }

/* --- Cột form đăng nhập bên phải - Phong cách Hành chính --- */
.clp-ak-right-column {
    width: 55%;
    padding: 50px 70px; /* Tăng padding ngang cho form thực sự thoáng */
    box-sizing: border-box;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0 12px 12px 0; /* Bo góc cho cột phải */
    box-shadow: 2px 0px 25px rgba(0, 0, 0, 0.06); /* Shadow nhẹ ở cạnh trái */
    position: relative;
    z-index: 0;
}

.clp-ak-right-column #login { width: 100% !important; padding: 0 !important; margin: 0 !important; background: none !important; box-shadow: none !important; border: none !important; outline: none !important;}
.login h1, .login h1 a { display: none !important; }
#loginform label[for="user_login"], #loginform label[for="user_pass"],
.login #nav, .login #backtoblog, .login .forgetmenot,
.login .language-switcher, #login #language-switcher, .login form .language-switcher {
    display: none !important;
}

.clp-ak-right-column .form-login-title {
    font-size: 26px;
    font-weight: 600;
    color: #2c3e50; /* Màu xám xanh đậm, chuyên nghiệp */
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#loginform { margin: 0; padding: 0; border: none !important; outline: none !important; }
#loginform p { margin-bottom: 22px; position: relative; } /* Giảm nhẹ margin để form gọn hơn */

/* Input fields - Phong cách Hành chính */
#loginform input[type="text"],
#loginform input[type="password"] {
    width: 100%;
    padding: 16px 20px; /* Padding cân đối hơn */
    border: 1px solid #dfe3e8; /* Viền xám nhạt, hiện đại */
    border-radius: 6px; /* Bo góc vừa phải */
    box-sizing: border-box;
    font-size: 16px;
    color: #344054; /* Màu chữ input */
    background-color: #f7f8fa; /* Nền input siêu nhạt */
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
    outline: none !important;
}
#loginform input[type="text"]::placeholder,
#loginform input[type="password"]::placeholder {
    color: #909aa3; /* Placeholder nhạt hơn */
    opacity: 1;
    font-weight: 400;
    font-size: 15px;
}
#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus {
    border-color: #AD140F;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(173, 20, 15, 0.08); /* Focus ring nhạt hơn */
    outline: none !important;
}

/* Nút "ĐĂNG NHẬP" chính - Phong cách Hành chính */
#loginform .submit { margin-top: 30px; }
#loginform .submit #wp-submit {
    background-color: #AD140F;
    border: none;
    color: #fff;
    width: 100%;
    padding: 16px; /* Padding cân đối */
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(173, 20, 15, 0.2);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    cursor: pointer;
    outline: none !important;
}
#loginform .submit #wp-submit:hover,
#loginform .submit #wp-submit:focus {
    background-color: #93110D;
    box-shadow: 0 4px 12px rgba(147, 17, 13, 0.25);
    transform: translateY(-2px);
    outline: none !important;
}
#loginform .submit #wp-submit:active {
    background-color: #7A0E0B;
    box-shadow: 0 2px 6px rgba(122, 14, 11, 0.2);
    transform: translateY(0px);
}

/* Nút "Đăng nhập qua VNeID" - Phong cách Outline tinh tế */
.clp-ak-vneid-login-button-container {
    margin-top: 22px;
    text-align: center;
}
.clp-ak-vneid-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px; /* Hơi nhỏ hơn nút chính */
    font-size: 15px;
    font-weight: 500;
    color: #AD140F; /* Màu chữ là màu đỏ chủ đạo */
    background-color: transparent; /* Nền trong suốt */
    border: 1.5px solid #AD140F; /* Viền màu đỏ chủ đạo */
    border-radius: 6px;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
    outline: none !important;
}
.clp-ak-vneid-button svg { /* Nếu bạn thêm SVG vào HTML */
    width: 18px;
    height: 18px;
    margin-right: 8px;
    fill: #AD140F; /* Icon cũng màu đỏ */
    transition: fill 0.2s ease-in-out;
}
.clp-ak-vneid-button:hover,
.clp-ak-vneid-button:focus {
    background-color: rgba(173, 20, 15, 0.05); /* Nền siêu nhạt khi hover */
    color: #93110D;
    border-color: #93110D;
    /* box-shadow: 0 2px 8px rgba(173, 20, 15, 0.1); */ /* Có thể thêm shadow nhẹ nếu muốn */
    transform: translateY(0px); /* Bỏ hiệu ứng nhấc cho nút outline */
    outline: none !important;
}
.clp-ak-vneid-button:hover svg {
    fill: #93110D;
}
.clp-ak-vneid-button:active {
    background-color: rgba(173, 20, 15, 0.1);
    color: #7A0E0B;
    border-color: #7A0E0B;
    transform: translateY(0px);
}


/* Custom Password Visibility Toggle Icon */
.wp-core-ui .button.wp-hide-pw {
    position: absolute; right: 1px; top: 50%; transform: translateY(-50%);
    height: calc(100% - 2px); width: 48px; /* Điều chỉnh kích thước nút icon */
    padding: 0; margin: 0; border: none; background: transparent;
    color: #909aa3; /* Màu icon nhạt hơn */
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    border-radius: 0 6px 6px 0;
    outline: none !important;
}
.wp-core-ui .button.wp-hide-pw:hover,
.wp-core-ui .button.wp-hide-pw:focus {
    background: rgba(0,0,0,0.03); color: #AD140F; box-shadow: none;
    outline: none !important;
}
.wp-core-ui .button.wp-hide-pw .dashicons { display: none !important; }
.wp-core-ui .button.wp-hide-pw::before {
    content: ''; display: block; width: 19px; height: 19px;
    background-repeat: no-repeat; background-position: center center; background-size: contain;
    transition: background-image 0.1s ease-in-out;
}
/* SVG đã được URL-encoded, fill='%23909aa3' cho màu mặc định, fill='%23AD140F' cho màu hover */
.wp-core-ui .button.wp-hide-pw[data-toggle="0"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23909aa3'%3E%3Cpath d='M12 15a3 3 0 100-6 3 3 0 000 6z' /%3E%3Cpath fill-rule='evenodd' d='M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a.75.75 0 010-1.113zM17.25 12a5.25 5.25 0 11-10.5 0 5.25 5.25 0 0110.5 0z' clip-rule='evenodd' /%3E%3C/svg%3E");
}
.wp-core-ui .button.wp-hide-pw[data-toggle="0"]:hover::before, .wp-core-ui .button.wp-hide-pw[data-toggle="0"]:focus::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23AD140F'%3E%3Cpath d='M12 15a3 3 0 100-6 3 3 0 000 6z' /%3E%3Cpath fill-rule='evenodd' d='M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a.75.75 0 010-1.113zM17.25 12a5.25 5.25 0 11-10.5 0 5.25 5.25 0 0110.5 0z' clip-rule='evenodd' /%3E%3C/svg%3E");
}
.wp-core-ui .button.wp-hide-pw[data-toggle="1"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23909aa3'%3E%3Cpath d='M3.53 2.47a.75.75 0 00-1.06 1.06l18 18a.75.75 0 101.06-1.06l-18-18zM22.676 12.553a11.249 11.249 0 01-2.631 4.31l-3.099-3.099a5.25 5.25 0 00-6.71-6.71L7.759 4.577a11.217 11.217 0 014.242-.827c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113zM17.25 12a5.25 5.25 0 01-7.313 4.92L15.08 9.687a5.25 5.25 0 012.17 2.313zM12 17.25a5.25 5.25 0 005.25-5.25.75.75 0 00-1.5 0 3.75 3.75 0 01-3.75 3.75.75.75 0 000 1.5zM4.5 12.75a.75.75 0 01.75-.75h.008a.75.75 0 01.75.75A3.75 3.75 0 009 16.5a.75.75 0 011.06 1.06A5.25 5.25 0 013.75 12a.75.75 0 01.75-.75z' /%3E%3C/svg%3E");
}
.wp-core-ui .button.wp-hide-pw[data-toggle="1"]:hover::before, .wp-core-ui .button.wp-hide-pw[data-toggle="1"]:focus::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23AD140F'%3E%3Cpath d='M3.53 2.47a.75.75 0 00-1.06 1.06l18 18a.75.75 0 101.06-1.06l-18-18zM22.676 12.553a11.249 11.249 0 01-2.631 4.31l-3.099-3.099a5.25 5.25 0 00-6.71-6.71L7.759 4.577a11.217 11.217 0 014.242-.827c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113zM17.25 12a5.25 5.25 0 01-7.313 4.92L15.08 9.687a5.25 5.25 0 012.17 2.313zM12 17.25a5.25 5.25 0 005.25-5.25.75.75 0 00-1.5 0 3.75 3.75 0 01-3.75 3.75.75.75 0 000 1.5zM4.5 12.75a.75.75 0 01.75-.75h.008a.75.75 0 01.75.75A3.75 3.75 0 009 16.5a.75.75 0 011.06 1.06A5.25 5.25 0 013.75 12a.75.75 0 01.75-.75z' /%3E%3C/svg%3E");
}
#loginform input#user_pass { padding-right: 52px !important; } /* Điều chỉnh padding cho nút icon */
#loginform .user-pass-wrap, #loginform .wp-pwd { position: relative; }


/* --- Responsive adjustments --- */
@media (max-width: 900px) {
    body.login { padding: 15px; }
    .clp-ak-login-page-container { flex-direction: column; width: 100%; max-width: 480px; min-height: auto; margin: auto; border-radius: 8px; overflow: hidden; }
    .clp-ak-left-column, .clp-ak-right-column { width: 100%; border-radius: 0; box-shadow: none; }
    .clp-ak-left-column { border-radius: 8px 8px 0 0; padding: 30px 25px; min-height: auto; }
    .clp-ak-right-column { border-radius: 0 0 8px 8px; padding: 40px 30px; }
    .clp-ak-custom-info .clp-ak-main-title { font-size: 22px; }
    .clp-ak-right-column .form-login-title { font-size: 24px; margin-bottom: 30px; }
    #loginform input[type="text"], #loginform input[type="password"] { padding: 15px 20px; font-size: 15px; }
    #loginform input#user_pass { padding-right: 50px !important; }
    .wp-core-ui .button.wp-hide-pw { width: 45px; }
    .wp-core-ui .button.wp-hide-pw::before { width: 18px; height: 18px; }
    #loginform .submit #wp-submit, .clp-ak-vneid-button { font-size: 15px; padding: 15px; }
}
@media (max-width: 480px) {
    .clp-ak-left-column { padding: 25px 20px; }
    .clp-ak-right-column { padding: 35px 25px; }
    .clp-ak-custom-info .clp-ak-main-title { font-size: 20px; }
    .clp-ak-custom-info .clp-ak-sub-title { font-size: 13px; }
    .clp-ak-support-info h3 { font-size: 15px; }
    .clp-ak-support-info p { font-size: 12.5px; }
    .clp-ak-qr-item img, .clp-ak-qr-item .clp-ak-qr-placeholder { width: 75px; height: 75px; }
    .clp-ak-right-column .form-login-title { font-size: 22px; }
    #loginform input[type="text"], #loginform input[type="password"] { padding: 14px 18px; font-size: 14px; }
    #loginform input#user_pass { padding-right: 45px !important; }
    .wp-core-ui .button.wp-hide-pw { width: 40px; }
    .wp-core-ui .button.wp-hide-pw::before { width: 16px; height: 16px; }
    #loginform .submit #wp-submit, .clp-ak-vneid-button { font-size: 14px; padding: 14px; }
}