/* Reset và thiết lập cơ bản */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login {
    background: #e8e8e8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* Container chính */
#login {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.login form{
    border: none;
}

/* Language switcher */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
}

#language-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
}

#language-switcher label {
    display: flex;
    align-items: center;
    margin: 0;
}

.language-switcher .dashicons {
    display: none;
}

.language-switcher .screen-reader-text {
    position: absolute;
    left: -9999px;
}

#language-switcher-locales {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: underline;
    color: #333;
    background: transparent;
    cursor: pointer;
    text-align: end;
}

.wp-core-ui select:focus{
    border: none;
    box-shadow:none;
}

.language-switcher input[type="submit"] {
    display: none;
}

/* Logo WordPress */
.wp-login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.wp-login-logo a {
    display: inline-block;
    width: 200px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px;
    overflow: hidden;
}

/* Form đăng nhập */
#loginform {
    margin-top: 20px;
}

#loginform p {
    margin-bottom: 20px;
}

#loginform label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

/* Input fields */
#loginform .input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: #fff;
    margin-right: 0;
}

#loginform .input:focus {
    outline: none;
    border-color: #00bcd4;
}
.login .button.wp-hide-pw:focus{
    border: none;
    box-shadow: none;
}
/* Password field container */
.user-pass-wrap {
    margin-bottom: 20px;
}

.wp-pwd {
    position: relative;
    display: flex;
    align-items: center;
}

.wp-pwd .password-input {
    width: 100%;
    padding-right: 45px;
}

.wp-pwd .wp-hide-pw {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-pwd .wp-hide-pw .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: #666;
}

.wp-pwd .wp-hide-pw:hover .dashicons {
    color: #333;
}

/* Navigation links */
#nav {
    margin-bottom: 15px;
    text-align: right;
}

#nav a {
    color: #00bcd4;
    text-decoration: none;
    font-size: 14px;
}

#nav a:hover {
    text-decoration: underline;
}

/* Remember me checkbox */
.forgetmenot {
    display: none;
    align-items: center;
    margin-bottom: 20px;
}

.forgetmenot input[type="checkbox"] {
    margin: 0 8px 0 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgetmenot label {
    margin: 0;
    cursor: pointer;
    font-weight: normal;
    font-size: 14px;
}

.login #nav {
    margin: 16px 0;
    padding: 0;
}

/* Submit button */
.submit {
    margin-bottom: 0;
}

#wp-submit {
    width: 100%;
    padding: 14px;
    background: #a8dce3;
    color: #333;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

#wp-submit:hover {
    background: #8dd4dd;
}

#wp-submit:active {
    background: #7ccdd7;
}

/* Back to blog link */
#backtoblog {
    display: none;
}

/* Privacy policy link */
.privacy-policy-page-link {
    display: none;
}

/* Screen reader text */
.screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Hidden inputs */
input[type="hidden"] {
    display: none;
}

/* Responsive */
@media (max-width: 600px) {
    #login {
        padding: 0px 20px;
        height: 100%;
    }

    .language-switcher {
        position: static;
        text-align: right;
        margin-bottom: 0px;
    }
        #language-switcher {
        justify-content: flex-end !important;
    }
    .language-switcher {
    margin: 0 auto;
    padding: 0px;
    text-align: center;
}

.wp-login-logo {
    text-align: center;
    margin-bottom: 0px;
}

.login form {
    margin: 0px;
}
#wp-submit {
    padding: 0px;
}
}