/* Pro Login Designer - Login Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body.login {
    height: 100%;
    width: 100%;
}
body.login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.login form {
    width: 100%;
}
body.login input[type='text'],
body.login input[type='password'],
body.login input[type='email'] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
body.login .user-pass-wrap {
    position: relative;
}
body.login .wp-pwd {
    position: relative;
    display: block;
}
body.login .wp-hide-pw {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-100%) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 24px !important;
    min-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10;
    cursor: pointer;
    box-shadow: none !important;
    border-radius: 0 !important;
    appearance: none !important;
}
/* Stronger specificity to kill any theme/plugin button backgrounds */
body.login #login form .wp-pwd .wp-hide-pw,
body.login #login form .wp-pwd .wp-hide-pw.button,
body.login #login form .wp-pwd .wp-hide-pw.button-secondary,
body.login #login form .wp-pwd .wp-hide-pw.components-button,
body.login #login form .wp-pwd .wp-hide-pw[type='button'] {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}
/* Remove any inherited admin button styles from WordPress or themes */
body.login .wp-hide-pw.button,
body.login .wp-hide-pw.button-secondary,
body.login .wp-hide-pw.components-button {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
}
body.login .wp-hide-pw .dashicons {
    cursor: pointer;
    color: #6b7280;
    font-size: 18px;
    width: 18px;
    height: 18px;
    transition: color 0.2s ease;
    margin: 0;
}
body.login .wp-hide-pw:hover .dashicons {
    color: #374151;
}
body.login .wp-hide-pw span {
    display: block;
    line-height: 1;
}
body.login div#login form input#user_pass,
body.login div#login form input.password-input {
    padding-right: 42px !important;
}
/* Place language switcher under the form and center it (body.login prefix so hide rules can match same specificity) */
body.login .language-switcher {
    position: static !important;
    margin: 12px auto 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}
/* Ensure perfect centering inside the login box in both LTR/RTL */
body.login #login > .language-switcher { width: 100%; }
body.login .language-switcher form { float: none !important; margin: 0 auto; }
.dc-wps-pld-lang-container { margin: 0 auto; }
/* Custom language dropdown */
body.login .language-switcher form { position: relative; }
.dc-wps-pld-lang-container { position: relative; }
.dc-wps-pld-prelogin-content {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}
.dc-wps-pld-prelogin-content p {
    margin: 0 0 12px 0;
}
.dc-wps-pld-prelogin-content p:last-child {
    margin-bottom: 0;
}
.dc-wps-pld-prelogin-content br {
    line-height: 1.6;
}
.dc-wps-pld-prelogin-content ul,
.dc-wps-pld-prelogin-content ol {
    margin: 10px 0 10px 20px;
    padding-left: 20px;
}
.dc-wps-pld-prelogin-content li {
    margin-bottom: 5px;
}
.dc-wps-pld-prelogin-content strong,
.dc-wps-pld-prelogin-content b {
    font-weight: 600;
}
.dc-wps-pld-prelogin-content em,
.dc-wps-pld-prelogin-content i {
    font-style: italic;
}
.dc-wps-pld-prelogin-content a {
    color: var(--primary-color, #2563eb);
    text-decoration: underline;
}
.dc-wps-pld-prelogin-content a:hover {
    text-decoration: none;
}
.dc-wps-pld-prelogin-content h1,
.dc-wps-pld-prelogin-content h2,
.dc-wps-pld-prelogin-content h3,
.dc-wps-pld-prelogin-content h4,
.dc-wps-pld-prelogin-content h5,
.dc-wps-pld-prelogin-content h6 {
    margin: 0 0 12px 0;
    font-weight: 600;
    line-height: 1.3;
}
.dc-wps-pld-prelogin-content h1 {
    font-size: 24px;
}
.dc-wps-pld-prelogin-content h2 {
    font-size: 20px;
}
.dc-wps-pld-prelogin-content h3 {
    font-size: 18px;
}
.dc-wps-pld-prelogin-content h4 {
    font-size: 16px;
}
.dc-wps-pld-prelogin-content h5 {
    font-size: 14px;
}
.dc-wps-pld-prelogin-content h6 {
    font-size: 12px;
}
.dc-wps-pld-prelogin-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px 0;
}
.dc-wps-pld-prelogin-content img.alignleft {
    float: left;
    margin: 0 15px 12px 0;
}
.dc-wps-pld-prelogin-content img.alignright {
    float: right;
    margin: 0 0 12px 15px;
}
.dc-wps-pld-prelogin-content img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 12px;
    margin-bottom: 12px;
}
.dc-wps-pld-prelogin-content .wp-image-676,
.dc-wps-pld-prelogin-content img[class*="wp-image"] {
    max-width: 100%;
    height: auto;
}
/* Post-login content (after buttons) */
.dc-wps-pld-postlogin-content {
    margin: 20px 0 0 0;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}
.dc-wps-pld-postlogin-content p {
    margin: 0 0 12px 0;
}
.dc-wps-pld-postlogin-content p:last-child {
    margin-bottom: 0;
}
.dc-wps-pld-postlogin-content br {
    line-height: 1.6;
}
.dc-wps-pld-postlogin-content ul,
.dc-wps-pld-postlogin-content ol {
    margin: 10px 0 10px 20px;
    padding-left: 20px;
}
.dc-wps-pld-postlogin-content li {
    margin-bottom: 5px;
}
.dc-wps-pld-postlogin-content strong,
.dc-wps-pld-postlogin-content b {
    font-weight: 600;
}
.dc-wps-pld-postlogin-content em,
.dc-wps-pld-postlogin-content i {
    font-style: italic;
}
.dc-wps-pld-postlogin-content a {
    color: var(--primary-color, #2563eb);
    text-decoration: underline;
}
.dc-wps-pld-postlogin-content a:hover {
    text-decoration: none;
}
.dc-wps-pld-postlogin-content h1,
.dc-wps-pld-postlogin-content h2,
.dc-wps-pld-postlogin-content h3,
.dc-wps-pld-postlogin-content h4,
.dc-wps-pld-postlogin-content h5,
.dc-wps-pld-postlogin-content h6 {
    margin: 0 0 12px 0;
    font-weight: 600;
    line-height: 1.3;
}
.dc-wps-pld-postlogin-content h1 {
    font-size: 24px;
}
.dc-wps-pld-postlogin-content h2 {
    font-size: 20px;
}
.dc-wps-pld-postlogin-content h3 {
    font-size: 18px;
}
.dc-wps-pld-postlogin-content h4 {
    font-size: 16px;
}
.dc-wps-pld-postlogin-content h5 {
    font-size: 14px;
}
.dc-wps-pld-postlogin-content h6 {
    font-size: 12px;
}
.dc-wps-pld-postlogin-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px 0;
}
.dc-wps-pld-postlogin-content img.alignleft {
    float: left;
    margin: 0 15px 12px 0;
}
.dc-wps-pld-postlogin-content img.alignright {
    float: right;
    margin: 0 0 12px 15px;
}
.dc-wps-pld-postlogin-content img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 12px;
    margin-bottom: 12px;
}
.dc-wps-pld-postlogin-content .wp-image-676,
.dc-wps-pld-postlogin-content img[class*="wp-image"] {
    max-width: 100%;
    height: auto;
}
.dc-wps-pld-logo-inside #login h1 { margin: 0 0 12px 0; }
.dc-wps-pld-lang-toggle {
    padding: 10px 38px 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    color: #111827;
    min-width: 240px;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .05s ease;
}
.dc-wps-pld-lang-toggle:focus {
    outline: none;
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}
.dc-wps-pld-lang-container.open .dc-wps-pld-lang-toggle {
    border-color: var(--primary-color, #2563eb);
}
.dc-wps-pld-lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    list-style: none;
    padding: 6px 0;
    margin: 0;
    display: none;
    z-index: 1000;
}
.dc-wps-pld-lang-container.open .dc-wps-pld-lang-menu { display: block; }
.dc-wps-pld-lang-menu li {
    padding: 10px 12px;
    cursor: pointer;
}
.dc-wps-pld-lang-menu li:hover,
.dc-wps-pld-lang-menu li.active {
    background: var(--primary-color, #2563eb);
    color: #fff;
}
/* Hide native controls (keep in DOM for submission) */
body.login .language-switcher select,
body.login .language-switcher input[type='submit'],
body.login .language-switcher button[type='submit'],
body.login .language-switcher .button { display: none !important; }

/* RTL adjustments */
body.rtl .dc-wps-pld-lang-toggle {
    padding: 10px 14px 10px 38px;
}
body.rtl .dc-wps-pld-lang-menu {
    left: auto; right: 0;
}
/* Remove translation icon before language switcher */
body.login .language-switcher .dashicons,
body.login .language-switcher .dashicons:before,
body.login .language-switcher .dashicons-translation {
    display: none !important;
}
/* Language dropdown */
body.login .language-switcher select {
    padding: 10px 38px 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    min-width: 240px;
    color: #111827;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .05s ease;
}
body.login .language-switcher select:focus {
    outline: none;
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}
/* Dropdown menu items (browser support varies) */
body.login .language-switcher select option {
    padding: 10px 12px;
    background: #ffffff;
    color: #111827;
}
body.login .language-switcher select option:checked,
body.login .language-switcher select option:focus,
body.login .language-switcher select option:hover {
    background: var(--primary-color, #2563eb);
    color: #ffffff;
}
/* Change button - background set dynamically, shape kept as 8px rounded */
body.login .language-switcher input[type='submit'],
body.login .language-switcher button:not(.dc-wps-pld-lang-toggle),
body.login .language-switcher .button {
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
body.login .language-switcher input[type='submit']:hover,
body.login .language-switcher button:not(.dc-wps-pld-lang-toggle):hover,
body.login .language-switcher .button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
@media (max-width: 600px) {
    body.login div#login {
        width: 100% !important;
        margin: 20px !important;
    }
    body.login div#login form#loginform,
    body.login div#login form#lostpasswordform,
    body.login div#login form#resetpassform {
        padding: 30px 20px !important;
    }
}