/* Trang đăng nhập / đăng ký công khai — trong layout header/menu/footer */
.xt-trang {
    --xt-nen-trai: var(--mau-cam-nhat);
    --xt-nen-giua: var(--mau-cam-dam);
    --xt-nen-phai: #c2185b;
    --xt-nut-dn-trai: var(--mau-xanh-dam);
    --xt-nut-dn-phai: var(--mau-xanh-nhat);
    --xt-nut-dk-trai: var(--mau-cam-dam);
    --xt-nut-dk-phai: var(--mau-thanh-cong);
    --xt-link: #1aa6a0;
    --xt-vien: #d7dbe3;
    --xt-chu: #4a4a4a;
    margin: 0;
    width: 100%;
    min-height: calc(100vh - 11rem);
    font-family: "Be Vietnam Pro", var(--font-chu);
    color: var(--xt-chu);
    background: linear-gradient(90deg, var(--xt-nen-trai) 0%, var(--xt-nen-giua) 42%, var(--xt-nen-phai) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem var(--le-ngang-trang, 1rem);
    box-sizing: border-box;
}

.xt-khung {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.5rem 2rem;
    align-items: center;
}

.xt-minh-hoa {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.xt-minh-hoa__anh {
    width: min(420px, 100%);
    height: auto;
    filter: drop-shadow(0 18px 28px rgba(0, 49, 144, 0.18));
}

.xt-minh-hoa__chu {
    margin: 0.35rem 0 0;
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #7ec8ff;
    text-shadow:
        2px 2px 0 #0b4ea2,
        4px 4px 0 rgba(0, 49, 144, 0.25);
    line-height: 1;
}

.xt-the {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
    padding: 1.75rem 1.6rem 1.5rem;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
}

.xt-tieu-de {
    margin: 0 0 1.15rem;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #555;
    text-transform: uppercase;
}

.xt-mo-ta {
    margin: 0 0 1.25rem;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--mau-chu-phu);
}

.xt-form {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.xt-nhan {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.xt-o {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--xt-vien);
    border-radius: 3px;
    padding: 0.72rem 0.85rem;
    font: inherit;
    font-size: 0.95rem;
    color: var(--mau-chu-chinh);
    background: #fff;
    outline: none;
    transition: border-color var(--chuyen-dong-nhanh), box-shadow var(--chuyen-dong-nhanh);
}

.xt-o::placeholder {
    color: #9aa1ad;
}

.xt-o:focus {
    border-color: var(--mau-xanh-chinh);
    box-shadow: 0 0 0 3px rgba(21, 104, 217, 0.12);
}

.xt-o-mat-khau {
    position: relative;
}

.xt-o-mat-khau .xt-o {
    padding-right: 2.6rem;
}

.xt-mat {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #8a919c;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.xt-mat svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
}

.xt-hang-phu {
    display: flex;
    justify-content: flex-end;
    margin: -0.15rem 0 0.35rem;
}

.xt-quen {
    font-size: 0.86rem;
    color: #5a5a5a;
    text-decoration: none;
}

.xt-quen:hover {
    color: var(--mau-xanh-chinh);
    text-decoration: underline;
}

.xt-nut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    box-sizing: border-box;
    border: 0;
    border-radius: 4px;
    min-height: 2.7rem;
    padding: 0.7rem 1rem;
    font: inherit;
    font-weight: 700;
    font-size: 0.98rem;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: filter var(--chuyen-dong-nhanh), transform var(--chuyen-dong-nhanh);
}

.xt-nut:hover {
    filter: brightness(1.05);
}

.xt-nut:active {
    transform: translateY(1px);
}

.xt-nut--dang-nhap {
    background: linear-gradient(90deg, var(--xt-nut-dn-trai), var(--xt-nut-dn-phai));
    margin-top: 0.25rem;
}

.xt-nut--dang-ky {
    background: linear-gradient(90deg, var(--xt-nut-dk-trai), var(--xt-nut-dk-phai));
    margin-top: 0.55rem;
}

.xt-nut--gmail {
    background: #db4437;
    margin-top: 0.15rem;
}

.xt-nut--microsoft {
    background: #2f2f2f;
    margin-top: 0.55rem;
}

.xt-logo-g,
.xt-logo-ms {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.xt-or {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.95rem 0 0.85rem;
    color: #9aa1ad;
    font-size: 0.9rem;
}

.xt-or::before,
.xt-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e4e7ee;
}

.xt-chan {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.xt-chan a {
    color: var(--xt-link);
    font-weight: 700;
    text-decoration: none;
}

.xt-chan a:hover {
    text-decoration: underline;
}

.xt-loi,
.xt-ok {
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.xt-loi {
    background: #fef2f2;
    color: var(--mau-loi);
    border: 1px solid #fecaca;
}

.xt-ok {
    background: #ecfdf5;
    color: var(--mau-thanh-cong);
    border: 1px solid #a7f3d0;
}

.xt-captcha {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 0.55rem;
    align-items: center;
    margin-top: 0.15rem;
}

.xt-captcha__lam-moi {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #222;
    text-decoration: none;
}

.xt-captcha__lam-moi svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
}

.xt-captcha__ma {
    min-width: 3.2rem;
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--mau-xanh-dam);
    user-select: none;
}

@media (max-width: 860px) {
    .xt-trang {
        min-height: auto;
        padding: 1.5rem var(--le-ngang-trang, 1rem) 2rem;
    }

    .xt-khung {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .xt-minh-hoa {
        order: -1;
    }

    .xt-minh-hoa__anh {
        width: min(260px, 70vw);
    }

    .xt-minh-hoa__chu {
        font-size: 2.4rem;
    }

    .xt-the {
        max-width: 440px;
    }
}
