/*
 * CSS tùy chỉnh cho trang đăng nhập và đăng ký
 */

/* Container chính bao bọc cả hai form */
body.login .clr-container {
    width: 768px;
    max-width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 40px;
    padding-top: 5vh;
}

/* Ghi đè style mặc định của WordPress trên #login div để nó khớp với layout mới */
body.login #login {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Kiểu cho vùng chứa form đăng nhập */
#clr-login-wrapper {
    width: 320px;
    box-sizing: border-box;
    /* Thêm nền và shadow để giống với form mặc định */
    background-color: #fff;
    padding: 26px 24px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.13);
}

/* Kiểu cho vùng chứa form đăng ký */
#clr-register-wrapper {
    width: 320px;
    padding: 26px 24px;
    box-sizing: border-box;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.13);
}

/* Ẩn logo mặc định để tránh lặp lại nếu cần, hoặc bạn có thể tùy chỉnh nó */
#clr-login-wrapper h1 {
    margin-bottom: 20px;
}


/* Căn chỉnh tiêu đề và văn bản trong form đăng ký */
#clr-register-wrapper h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px;
    text-align: center;
    color: #1d2327;
}

#clr-register-wrapper p {
    color: #444;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}

/* Đảm bảo các trường input trong form đăng ký hiển thị đẹp */
#clr-register-wrapper .input,
#registerform_new .input {
    width: 100%;
    margin-bottom: 16px;
}

#clr-register-wrapper .submit .button {
    width: 100%;
}

/* Ẩn link đăng ký mặc định trong phần điều hướng vì chúng ta đã có form riêng */
body.login #nav a[href*="action=register"] {
    display: none;
}

/* Nếu chỉ có link đăng ký, dấu "|" có thể bị thừa. Đoạn CSS này sẽ xóa nó. */
body.login #nav br {
    display: none;
}

/* --- CSS cho giao diện di động --- */
@media screen and (max-width: 782px) {
    body.login .clr-container {
        width: 90%;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding-top: 2vh;
    }

    #clr-login-wrapper,
    #clr-register-wrapper {
        width: 100%;
        max-width: 320px;
        margin-bottom: 20px;
    }
}