/* Newgital Custom Login v3.0.0 */

html,
body.ncl-standalone-login-page,
body.ncl-standalone-recovery-page,
body.ncl-standalone-signup-page {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100%;
}

body.ncl-standalone-login-page,
body.ncl-standalone-recovery-page,
body.ncl-standalone-signup-page {
    background: var(--ncl-bg);
}

.ncl-standalone-main {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.ncl-login-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
    background: var(--ncl-bg);
}

.ncl-login-box {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 32px;
    box-sizing: border-box;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

.ncl-logo {
    text-align: center;
    margin-bottom: 20px;
}

.ncl-logo img {
    max-width: 180px;
    max-height: 80px;
}

.ncl-login-header {
    text-align: center;
    margin-bottom: 25px;
}

.ncl-login-header h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
}

.ncl-login-header p {
    margin: 0;
    opacity: .75;
}

.ncl-login-error {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #dc3232;
    border-radius: 5px;
    background: #fff1f1;
    color: #a00;
}

.ncl-login-notice {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #c9d9c9;
    border-radius: 5px;
    background: #f3faf3;
}

.ncl-field {
    margin: 0 0 18px;
}

.ncl-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

.ncl-field input[type="text"],
.ncl-field input[type="email"],
.ncl-field input[type="password"] {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cfcfcf;
    border-radius: 5px;
    box-sizing: border-box;
}

.ncl-field input:focus {
    outline: none;
    border-color: var(--ncl-primary);
    box-shadow: 0 0 0 1px var(--ncl-primary);
}

.ncl-remember {
    margin: 0 0 20px;
}

.ncl-remember label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
}

.ncl-button {
    display: inline-block;
    width: 100%;
    min-height: 46px;
    padding: 11px 16px;
    border: 0;
    border-radius: 5px;
    background: var(--ncl-primary);
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
}

.ncl-button:hover {
    opacity: .92;
}

.ncl-links {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 480px) {
    .ncl-login-wrapper {
        padding: 25px 15px;
    }

    .ncl-login-box {
        padding: 24px 18px;
    }
}


/* v3.0.5: Site branding and theme-aware presentation */
.ncl-login-box {
    font-family: inherit;
}

.ncl-branding {
    text-align: center;
    margin: 0 0 22px;
}

.ncl-site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.ncl-site-logo img {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 90px;
    object-fit: contain;
}

.ncl-site-name {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
}

.ncl-role-name {
    margin-top: 7px;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
    opacity: .75;
}

.ncl-login-header h1 {
    font-family: inherit;
}

.ncl-login-box input[type="text"],
.ncl-login-box input[type="email"],
.ncl-login-box input[type="password"] {
    font-family: inherit;
}

/*
 * If the theme defines useful CSS custom properties, inherit them for the
 * plugin's presentation without depending on Astra-specific selectors.
 */
.ncl-login-box {
    color: var(--ast-global-color-3, inherit);
}

.ncl-button {
    background: var(--ast-global-color-0, var(--ncl-primary));
}


.ncl-site-logo a {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
}

.ncl-link-separator {
    margin: 0 8px;
    opacity: .5;
}


/* v3.2.1: Normalize all signup/login fields equally, including email. */
.ncl-login-box .ncl-field input[type="email"],
.ncl-login-box .ncl-field input[type="text"],
.ncl-login-box .ncl-field input[type="password"] {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 10px 12px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    font: inherit !important;
    line-height: 1.4 !important;
    border: 1px solid #cfcfcf !important;
    border-radius: 5px !important;
    background: #fff !important;
}

.ncl-signup-form .ncl-field {
    width: 100%;
    margin: 0 0 18px;
}

.ncl-signup-form .ncl-button {
    width: 100%;
}

.ncl-signup-links {
    margin-top: 18px;
}
