/* CSS Document */

.ContentPane * {
    zoom: 1;
}
/* Trigger quirks mode for IE */

.dnnLogin {
    width: 100%;
}

.LoginPanel {
    width: 100%;
    padding-right: 0;
    float: left;
}

/* Tabs */
.dnnAdminTabNav {
    width: 500px;
}

.dnnLoginService {
    margin-inline: auto;
    max-width: 400px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    padding-top: 25px;
    padding: 32px;
    border-radius: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Modernized form inputs inside login service */
.dnnLoginService .dnnFormItem {
    margin-bottom: 16px;
    clear: both;
}

.dnnLoginService .dnnLabel,
.dnnLoginService .dnnFormLabel {
    display: inline-block;
    margin: 6px 18px 0 0;
    width: 100%;
    text-align: start;
    font-weight: 600;
    color: #333;
}

.dnnLoginService input[type="text"],
.dnnLoginService input[type="password"],
.dnnLoginService input[type="text"].dnnCaptcha,
.dnnLoginService input[type="password"].dnnCaptcha {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.dnnLoginService input[type="text"]:focus,
.dnnLoginService input[type="password"]:focus {
    outline: none;
    border-color: #007acc;
    box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.2);
}

/* CAPTCHA section */
.dnnLoginService div.dnnCaptcha {
    width: 100% !important;
    /* margin-left: 30% !important; */
    /* padding-left: 22px !important; */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dnnLoginService div.dnnCaptcha img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.dnnLoginService div.dnnCaptcha > div {
    font-size: 13px;
    color: #555;
}

/* Remember Me */
.dnnLoginService .dnnLoginRememberMe {
    display: none;
    align-items: center;
    margin-left: 0;
    gap: 8px;
}

.dnnLoginService .dnnLoginRememberMe .dnnFormLabel {
    width: auto;
    margin: 0;
    text-align: left;
}

.dnnLoginService input[type="checkbox"] {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.dnnLoginService .dnnCheckbox {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #999;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.dnnLoginService .dnnCheckbox .mark {
    display: none;
}

.dnnLoginService input[type="checkbox"]:checked + .dnnCheckbox .mark {
    display: block;
    position: absolute;
    top: 1px;
    left: 1px;
}

.dnnLoginService .dnnBoxLabel {
    font-weight: normal;
    color: #555;
    cursor: pointer;
}

/* Action Buttons */
.dnnLoginService .dnnPrimaryAction,
.dnnLoginService .dnnSecondaryAction {
    display: inline-block;
    padding: 8px 20px;
    margin: 0 8px 0 0;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    background-color: #007acc;
    color: white;
    border: 1px solid transparent;
    transition: 0.3s;
}

.dnnLoginService .dnnPrimaryAction:hover {
    background-color: #005a9e;
}

.dnnLoginService .dnnSecondaryAction {
    background-color: #f0f0f0;
    color: #333;
	white-space: nowrap;
}

.dnnLoginService .dnnSecondaryAction:hover {
    background-color: #e0e0e0;
}

/* Login Actions (Register / Reset Password) */
.dnnLoginService .dnnLoginActions ul {
    list-style: none;
    padding: 0;
    /* margin: 16px 0 0 30%; */
    display: flex;
    gap: 16px;
}

.dnnLoginService .dnnLoginActions li {
    margin: 0;
}

/* Keep social buttons untouched */
#socialControls {
    float: left;
    padding-top: 27px;
}

#socialControls ul.buttonList {
    list-style: none;
    padding-left: 0;
}
ul.buttonList li {
    float: none;
    list-style: none;
    width: 250px;
    margin-bottom: 7px;
}
/* ... [rest of your social button styles remain exactly as-is] ... */

/* clean some form style */
.dnnFormItem {
    width: 100%;
}

span.dnnFormMessage.dnnFormError.dnnCaptcha {
    right: 24%;
    bottom: -55px;
}

a.dnnDisabledAction:link,
a.dnnDisabledAction:visited,
a.dnnDisabledAction:active,
a.dnnDisabledAction:hover {
    text-decoration: none;
    color: Silver;
    opacity: 0.5;
    /*IE8*/ -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
}