/* ensure Inter is used site-local where specified */
.register-box,
.register-box h2,
.form-group label,
.register-link a,
.btn-register {
    font-family: "Inter", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html,
body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Oxygen", sans-serif;
}
body {
    background-color: #f5f5fa;
    position: relative;
}

.register-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    width: 100%;
    overflow: hidden;
}
.register-container {
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    position: relative;
    width: 926px;
    height: 1099px;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}
/* Hình trống đồng phía sau form - HTML element */
.trong-dong-bg {
    position: absolute;
    width: 926px;
    height: 929px;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
    z-index: 0;
    pointer-events: none;
    object-fit: contain;
}
.register-header {
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.register-header img {
    width: 80px;
    height: auto;
    margin-bottom: 16px;
}
.register-header h1 {
    font-size: 25px;
    font-weight: bolder;
    color: #013A5D;
    margin: 0;
    letter-spacing: 0;
    font-family: "Merriweather", serif;
}
.register-header p {
    font-size: 16px;
    color: #015B92;
    margin: 0;
    font-weight: 500;
}
.register-box {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 24px;
    width: 600px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
    margin: 20px auto;
    align-items: stretch;
}
.register-box h2 {
    text-align: center;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 24px;
    line-height: 150%;
    letter-spacing: 0;
    color: #000000;
    margin: 0 auto;
}
.form-group {
    width: 100%;
    margin: 0; /* remove all margins to reduce vertical space */
}
.form-group label {
    display: block;
    /* typography requested by user */
    font-family: "Inter", sans-serif;
    font-weight: 700; /* Bold */
    font-style: normal; /* use normal (bold is via font-weight) */
    font-size: 14px;
    line-height: 150%; /* same as 1.5 */
    letter-spacing: 0;
    vertical-align: middle;
    color: #000000;
}
.form-group label .required {
    color: #e53935;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 552px;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    margin-bottom: 10px;
    line-height: 1.5;
}
/* Fix select để text hiển thị giữa và không bị cắt */
.form-group select {
    padding: 0 12px;
    line-height: 40px;
    height: 40px;
}
.form-group input {
    padding: 8px 12px;
    line-height: 1.5;
}
/* Placeholder styles - standard */
.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: #98A2B3;
}
/* Placeholder styles - webkit browsers (Chrome, Safari) */
.form-group input::-webkit-input-placeholder,
.form-group textarea::-webkit-input-placeholder {
    color: #98A2B3;
    opacity: 1;
}
/* Placeholder styles - Firefox */
.form-group input::-moz-placeholder,
.form-group textarea::-moz-placeholder {
    color: #98A2B3;
    opacity: 1;
}
/* Placeholder styles - IE 10+ */
.form-group input:-ms-input-placeholder,
.form-group textarea:-ms-input-placeholder {
    color: #98A2B3;
}
/* Placeholder for select option (first empty option) */
.form-group select option[value=""] {
    color: #98A2B3;
}
/* Normal options should be black */
.form-group select option:not([value=""]) {
    color: #000000;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #026daf;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(2, 109, 175, 0.08);
}
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
    padding-right: 32px;
}
.form-group select option {
    padding: 8px;
    background-color: #ffffff;
    color: #000000;
}
.form-group textarea {
    width: 100%;
    max-width: 552px;
    height: 69px;

    border-radius: 8px;
    border-width: 1px;
    resize: vertical;
    position: relative;
}
.textarea-counter {
    position: absolute;
    bottom: 16px;
    right: 12px;
    font-size: 12px;
    color: #bdbdbd;
    pointer-events: none;
}
.form-group-textarea-wrapper {
    position: relative;
    width: 100%;
}
.password-wrapper {
    position: relative;
    width: 100%;
    max-width: 552px;
}
.password-toggle {
    position: absolute;
    right: 14px;
    top: 40%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}
.password-toggle:hover {
    opacity: 0.7;
}
.password-toggle svg {
    width: 24px;
    height: 24px;
    display: block;
    transition: opacity 0.2s ease;
}

.password-toggle .eye-icon {
    display: none;
}

.password-toggle .eye-slash-icon {
    display: block;
}

.password-toggle.show-password .eye-icon {
    display: block;
}

.password-toggle.show-password .eye-slash-icon {
    display: none;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px; /* reduce gap between columns */
    width: 100%;
}

.form-row.form-row-full > .form-group {
    grid-column: 1 / -1;
}

/* make inputs responsive: default to 100% of their form-group but cap visually to 552px */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 552px;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #98A2B3;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    line-height: 1.5;
}

.form-group textarea {
    width: 100%;
    max-width: 552px;
    height: 59px;
    padding: 8px 16px 8px 16px;
    border-radius: 8px;
    border-width: 1px;
    resize: vertical;
    position: relative;
}
.password-wrapper {
    position: relative;
    width: 100%;
    max-width: 552px;
}
.captcha-wrapper {
    /* input and image each take 50% of the available captcha area */
    display: grid;
    grid-template-columns: 1fr 1fr; /* two equal columns */
    gap: 8px;
    width: 100%;
    max-width: 552px;
    align-items: center;
}
.captcha-wrapper input {
    width: 100%;
    height: 44px;
    box-sizing: border-box;
}
/* Right column: image + small reload button. Use flex: image ~90%, button ~10% */
.captcha-image-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    height: 44px;
}
.captcha-image-wrapper img#imgCaptchaRegis {
    flex: 0 0 70%; /* image takes ~90% of right column */

    object-fit: cover; /* fill area without excessive scaling */
    border-radius: 4px;
    display: block;
}
.captcha-image-wrapper .captcha-refresh {
    /* icon-only button: no extra background/border/size enforced; sits to the right */
    flex: 0 0 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 20px;
}
/* reload icon: circular blue background with white icon */
.captcha-image-wrapper .captcha-refresh .reload-icon {
    background: #026daf;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}

.checkbox-group {
    margin: 20px 0 0 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
/* checkbox: visually hidden native input but keyboard-focusable; styled custom box shown via label */
.checkbox-inner {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.checkbox-inner input[type="checkbox"] {
    position: absolute; /* keep it accessible and focusable */
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    opacity: 0; /* visually hide native checkbox */
    cursor: pointer;
    z-index: 2;
}
.checkbox-inner label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    margin: 0;
    /* apply same label typography (bold 14px) for label text; adjust if you want different size */
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 150%;
    letter-spacing: 0;
    vertical-align: middle;
    color: #000000;
}
/* visible custom box */
.checkbox-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #dddde3;
    background: #f5f5fa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex-shrink: 0;
}
/* we'll use an inline SVG inside .checkbox-box for the check mark (more reliable) */
.checkbox-box svg {
    display: none;
    width: 22px;
    height: 22px;
}
/* when checked: blue background + white tick */
.checkbox-inner input[type="checkbox"]:checked + label .checkbox-box {
    background: #026daf;
    border-color: #026daf;
}
.checkbox-inner input[type="checkbox"]:checked + label .checkbox-box svg {
    display: block; /* show SVG check */
}
/* focus ring */
.checkbox-inner input[type="checkbox"]:focus + label .checkbox-box {
    outline: 2px solid rgba(2, 109, 175, 0.18);
    outline-offset: 2px;
}
.checkbox-group a {
    color: #026daf;
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-offset: 0px;
    text-decoration-thickness: 0;
    text-decoration-skip-ink: auto;
    font-weight: 400;
    font-size: 16px;
    margin-left: -5px;
}
.btn-register {
    width: 100%;
    height: 43px;
    padding: 8px 12px;
    background-color: #026daf;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    margin: 15px auto;
}
.btn-register:hover {
    background-color: #015c9a;
}
.btn-register:active {
    transform: scale(0.98);
}
.register-link {
    text-align: center;
    margin: 8px auto 0 auto;
    width: 552px; /* match button width so it lines up */
    box-sizing: border-box;
}
.register-link a {
    display: block;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0;
    color: #026daf;
    text-decoration: none;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    transition: color 0.15s ease;
}
.register-link a:hover {
    color: #015c9a;
}
/* hide footer-top (buttons) only on register page; keep footer-bottom contact visible */
.owner-register footer .footer-top {
    display: none !important;
}
/* Force publicv3 footer styles (fallback if external CSS not applied) */
footer .footer-top {
    background-color: #eeeeee !important;
    padding: 16px 20px !important;
    display: flex !important;
    justify-content: center !important;
    gap: 40px !important;
    border-bottom: 1px solid #e0e0e0 !important;
}
footer .footer-btn {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    color: #026eaf !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}
footer .footer-btn .icon {
    width: 50px !important;
    height: 50px !important;
    background-color: #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #bbdefb !important;
}
footer .footer-top a .text {
    font-weight: 600 !important;
    font-size: 15px !important;
}
footer .footer-bottom {
    background-color: #013a5d !important;
    color: #fff !important;
    text-align: center !important;
    padding: 14px 20px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}
footer .footer-bottom h5 {
    margin: 0 0 6px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
}
footer .footer-bottom p {
    margin: 0 !important;
    color: #e6f5ff !important;
}
/* Ensure footer on register page always spans full width and isn't constrained by container */
.owner-register footer {
    width: 100% !important;
    left: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
}
.divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 8px 0;
    height: 0;
    padding: 0;
}



/* Small devices (BS3: max-width 767px) - Mobile */
@media (min-width: 481px) and (max-width: 767px) {
    .register-wrapper {

        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    .register-container {
        min-height: auto !important;
        overflow-x: hidden !important;
        width: 100% !important;
        height: auto !important;
    }

    .trong-dong-bg {
        width: 926px !important;
        height: 929px !important;
        opacity: 1 !important;
    }

    .register-header {
        text-align: center;
        margin-bottom: 12px !important;
    }

    .register-header img {
        width: 60px !important;
        height: auto !important;
        margin-bottom: 12px !important;
    }

    .register-box {
        padding: 25px 18px !important;
        bottom: 25px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        gap: 12px !important;
    }



    .form-row {
        display: block !important;
        grid-template-columns: none !important;
        width: 100% !important;
    }

    .form-group {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 8px 0 !important;
    }

    .form-group label {
        font-size: 13px !important;
        margin-bottom: 2px !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 13px !important;
        box-sizing: border-box !important;
        height: 36px !important;
margin-bottom: 5px;
    }

    .form-group textarea {
        height: 55px !important;
    }

    .password-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }

    .btn-register {
        width: 100% !important;
        max-width: 100% !important;
        height: 38px !important;
        margin: 10px 0 !important;
    }

    .register-link {
        width: 100% !important;
        max-width: 100% !important;
    }

    .captcha-wrapper {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .captcha-wrapper input {
        flex: 1 1 50% !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
        box-sizing: border-box !important;
        height: 36px !important;
        margin: 0 !important;
    }

    .captcha-image-wrapper {
        flex: 0 0 48% !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        max-width: 48% !important;
        height: 36px !important;
    }

    .captcha-image-wrapper img {
        height: 36px !important;
        width: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }

    .captcha-refresh {
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        min-width: 32px;
        flex-shrink: 0 !important;
    }

    .checkbox-group {
        margin: 8px 0 !important;
        gap: 4px !important;
    }

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

/* Extra small devices (BS3: max-width 480px - phones, 390px width) */
@media (max-width: 480px) {
    .register-wrapper {

        overflow-x: hidden !important;
        width: 100% !important;

    }
    .password-toggle {
        position: absolute;
        right: 14px;
        top: 50% !important;

        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1;
    }
    .register-container {
        min-height: auto !important;
        overflow-x: hidden !important;
        width: 100% !important;
        height: auto !important;
    }

    .trong-dong-bg {
        width: 1226px !important;
        height: 1229px !important;
        opacity: 1 !important;
        top: 1% !important;
    }

    .register-header {
        margin-bottom: 8px !important;
        text-align: left !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box;
        margin-left: 20px;
        padding: 10px 0 !important;
    }

    .register-header img {
        width: 45px !important;
        height: auto !important;
        margin: 0 !important;
        flex: 0 0 auto;
    }

    .register-header-title {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        gap: 0 !important;
    }



    .register-header p {
        margin: 0 !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
    }

    .register-box {
        padding: 20px 12px !important;
        width: calc(100% - 20px) !important;
        margin-bottom: 100px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        gap: 10px !important;
    }



    .form-row {
        display: block !important;
        grid-template-columns: none !important;
        width: 100% !important;
    }

    .form-group {
        width: 100% !important;
        max-width: 100% !important;
        margin: 4px 0 !important;
        box-sizing: border-box !important;
    }

    .form-group label {
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin-bottom: 2px !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 13px !important;
        box-sizing: border-box !important;
        height: 36px !important;
        margin-bottom: 0 !important;
        padding: 6px 10px !important;
    }

    .form-group textarea {
        height: 50px !important;
    }

    .password-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }

    .btn-register {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 14px !important;
        height: 36px !important;
        padding: 6px 12px !important;
        margin: 10px 0 !important;
    }

    .register-link {
        width: 100% !important;
        max-width: 100% !important;
        margin: 4px 0 !important;
    }

    .register-link a {
        font-size: 13px;
        line-height: 1.4;
    }

    .captcha-wrapper {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .captcha-wrapper input {
        flex: 1 1 50% !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
        box-sizing: border-box !important;
        height: 36px !important;
        margin: 0 !important;
    }

    .captcha-image-wrapper {
        flex: 0 0 48% !important;
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
        max-width: 48% !important;
        height: 36px !important;
    }

    .captcha-image-wrapper img {
        height: 36px !important;
        width: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }

    .captcha-refresh {
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        min-width: 32px !important;
        flex-shrink: 0 !important;
    }
.divider{
    margin-top: 13px !important;
}
    .checkbox-group {
        margin: 8px 0 !important;
        gap: 4px !important;
    }

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