﻿input[name="captchaAnswer"] {    
        height: 28px;
        font-size: 12px;
        box-shadow: none;
        transition-duration: 0.5s;
        border-radius: 10px;
        border-width: 1px;
        border-style: solid;
        border-color: rgba(0, 0, 0, 0.15);
        border-image: initial;
    }
    input[name="captchaAnswer"]:focus{border-color:#3c774a;box-shadow:none;transition-duration:.5s}
    input[name="captchaAnswer"]:focus{border-color:#3c774a;box-shadow:none;transition-duration:.5s}
    input[name="captchaAnswer"]:focus-feedback{z-index:10}

/* Modern button styles for login page - center icons and text */
.submit-wrap { display: flex; justify-content: center; width: 100%; }
.auth-controls .submit-wrap { justify-content: center !important; }

/* Primary submit button - centered */
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 18px;
    background: #00A86B; /* bondi green */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform .08s ease, box-shadow .12s ease, background .12s ease;
    text-align: center;
    margin: 0 auto !important;
    width: auto;
    max-width: 320px; /* keep button reasonably sized while centered */
}
.submit-btn .btn-content { display: inline-flex; align-items: center; gap: 10px; justify-content: center; width: auto; }
.submit-btn .icon-wrap { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; }
.submit-btn svg { display: block; width: 20px; height: 20px; }
.submit-btn .btn-text { color: inherit; margin: 0; }
.submit-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,0.12); }
.submit-btn:active { transform: translateY(0); }
.submit-btn:focus { outline: 3px solid rgba(60,119,74,0.16); outline-offset: 2px; }

/* Social login buttons */
.social-login-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.social-login-item { width: 100%;  }
.social-login-btn {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 14px;
    background: #ffffff;
    color: #333333;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.04);
    transition: background .12s ease, box-shadow .12s ease, transform .08s ease;
    cursor: pointer;
    border: 1px solid #dcdcdc !important; /* small gray border */
}
.social-login-btn:hover { background: #f6f7f8; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,0.06); }
.social-login-btn:focus { outline: 3px solid rgba(232,178,16,0.12); outline-offset: 2px; }

/* Hover: green background for social login buttons but only text becomes white; icons keep their original color */
.social-login-btn:hover { background: #3C774A; color: inherit; }
.social-login-btn:hover .btn-text { color: #ffffff !important; }
/* Keep inline SVG icons green (do not change to white) */
.social-login-btn .icon-wrap svg { color: #3C774A; }
.social-login-btn .icon-wrap img { filter: none; }

.social-login-btn .btn-content { display: inline-flex; align-items: center; gap: 10px; width: 100%; justify-content: center; }
.icon-wrap { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin: 0; }
.icon-wrap img { width: 20px; height: 20px; object-fit: contain; display: block; }
.btn-text { font-weight: 600; color: inherit; display: inline-block; text-align: center; }

/* Variant subtle theming if needed */
.social-google { border-color: rgba(60,119,74,0.08); }
.social-apple { border-color: rgba(0,120,215,0.06); }
.social-365 { border-color: rgba(66,133,244,0.06); }

/* Minimal variant */
.login1.minimal .panel.panel-bordered {
    background: #ffffff;
    border: none;
    box-shadow: none;
}
.login1.minimal .panel-heading { background: transparent; color: #3C774A; text-align: center; }
.login1.minimal .submit-btn { background: #3C774A  !important; color: #ffffff !important; border: 1px solid transparent !important; box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important; }
.login1.minimal .submit-btn:hover { background: #ffffff !important; color: #3C774A  !important; border-color: #3C774A !important; transform: translateY(-1px); }
.login1.minimal .social-login-btn { background: transparent; border-color: rgba(0,0,0,0.06); box-shadow: none; }

/* Inverted variant (dark) */
.login1.inverted { background: #0f1720; padding: 18px; border-radius: 10px; }
.login1.inverted .panel.panel-bordered { background: transparent; border: none; box-shadow: none; }
.login1.inverted .panel-body, .login1.inverted .panel-heading { color: #e6eef0; }
.login1.inverted .submit-btn { background: #e8b210; color: #0f1720; }
.login1.inverted .social-login-btn { background: rgba(255,255,255,0.06); color: #e6eef0; border-color: rgba(255,255,255,0.06); }
.login1.inverted .social-login-btn .btn-text { color: #e6eef0; }



.login1 {
position:relative;
left:50%;
width:50%;
margin-left:-25%;

}
.login2 {
    border-color: #FFF;
}

.margin5 {
margin:5px;
}

.marginbottom10 {
    margin-bottom: 10px;
    /* Stronger, auth-specific button rules to guarantee visual requirements */
    .auth-controls .submit-btn {
        background: #00A86B !important; /* bondi green */
        color: #ffffff !important; /* white text */
        border: 1px solid transparent !important;
        transition: background .12s ease, color .12s ease, border-color .12s ease, box-shadow .12s ease, transform .08s ease;
    }

        .auth-controls .submit-btn .btn-content {
            justify-content: center;
        }

        .auth-controls .submit-btn:hover {
            background: #ffffff !important; /* become white on hover */
            color: #00A86B !important; /* bondi green text */
            border-color: #00A86B !important; /* bondi green border */
            box-shadow: 0 8px 18px rgba(0,0,0,0.06);
            transform: translateY(-1px);
        }
    /* Social buttons: inverse behavior (default white with green text, hover green) */
    .auth-controls .social-login-btn {
        background: #ffffff !important;
        color: #3C774A !important;
        border: 1px solid #dcdcdc !important; /* small gray border */
    }

        .auth-controls .social-login-btn .btn-text {
            color: #3C774A !important;
        }

        .auth-controls .social-login-btn:hover {
            background: #3C774A !important;
            color: #ffffff !important;
            border-color: #3C774A !important;
            transform: translateY(-1px);
        }
    /* Ensure minimal panel variant does not force submit button to white */
    .login1.minimal .auth-controls .submit-btn {
        background: #3C774A !important;
        color: #ffffff !important;
        border-color: transparent !important;
    }
    /* High-specificity override for the system submit button in minimal variant */
    .login1.minimal .auth-controls #btnSubmit.submit-btn {
        background: #00A86B !important; /* bondi green */
        color: #ffffff !important;
        border: 1px solid transparent !important;
    }
    /* Prevent icon images/SVGs from being affected on hover; keep their original colors */
    .auth-controls .social-login-btn .icon-wrap img {
        filter: none !important;
    }

    .auth-controls .social-login-btn:hover .icon-wrap img {
        filter: none !important;
    }

    .auth-controls .social-login-btn .icon-wrap svg {
        fill: initial !important;
        color: initial !important;
    }

    .auth-controls .social-login-btn:hover .icon-wrap svg {
        fill: initial !important;
        color: initial !important;
    }
    /* Ensure submit button svg/icon follows the button text color (bondi green -> white on hover) */
    .auth-controls .submit-btn .icon-wrap svg {
        color: currentColor !important;
    }
    /* Make social login buttons have a small grey border (visible by default) */
    .auth-controls .social-login-list .social-login-item .social-login-btn {
        border: 1px solid #dcdcdc !important;
    }
    /* High-specificity override for the main system submit button to ensure styles apply */
    #btnSubmit.submit-btn,
    .login1 .auth-controls #btnSubmit,
    .auth-controls #btnSubmit.submit-btn {
        background: #00A86B !important; /* bondi green */
        color: #ffffff !important;
        border: 1px solid transparent !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
    }

        .auth-controls #btnSubmit.submit-btn:hover {
            background: #ffffff !important;
            color: #00A86B !important;
            border-color: #00A86B !important;
        }
    /* Stronger override for the minimal login variant (more specific than .login1.minimal .submit-btn) */
    .login1.minimal .auth-controls .submit-btn,
    .login1.minimal .auth-controls #btnSubmit.submit-btn,
    .login1.minimal .auth-controls #btnSubmit {
        background: #00A86B !important;
        color: #ffffff !important;
        border: 1px solid transparent !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
    }

        .login1.minimal .auth-controls .submit-btn:hover,
        .login1.minimal .auth-controls #btnSubmit.submit-btn:hover {
            background: #ffffff !important;
            color: #00A86B !important;
            border-color: #00A86B !important;
        }
    /* Ensure the inline SVG inside the submit button follows the text color */
    .auth-controls #btnSubmit.submit-btn .icon-wrap svg {
        color: currentColor !important;
        stroke: currentColor !important;
    }
    /* System-specific submit button class to ensure it wins over generic .submit-btn rules */
    .auth-controls .system-submit.submit-btn,
    .login1.minimal .auth-controls .system-submit.submit-btn,
    .auth-controls #btnSubmit.system-submit {
        background: #00A86B !important;
        color: #ffffff !important;
        border: 1px solid transparent !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
    }

        .auth-controls #btnSubmit.system-submit:hover,
        .login1.minimal .auth-controls .system-submit.submit-btn:hover {
            background: #ffffff !important;
            color: #00A86B !important;
            border-color: #00A86B !important;
        }
    /* Forgot password placement and style: right aligned under password input with gray underline */
    /* General placement for auth controls */
    .auth-controls .forgot-row {
        width: 100% !important;
        max-width: none !important;
        display: flex !important;
        justify-content: flex-end !important; /* align to the right under the password input */
        margin-top: 6px !important;
        margin-bottom: 6px !important;
    }
    /* Stronger, context-specific overrides for minimal login variant to beat global .forgot-row */
    .login1.minimal .panel.panel-bordered.panel-primary.login2 .auth-controls .forgot-row,
    .login1.minimal .auth-controls .forgot-row {
        width: 100% !important;
        max-width: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        margin-top: 6px !important;
        margin-bottom: 6px !important;
    }

    .auth-controls .forgot-link,
    .login1.minimal .auth-controls .forgot-link {
        text-decoration: none !important;
        color: #3C774A !important;
        border-bottom: 2px solid #dcdcdc !important; /* gray underline */
        padding-bottom: 2px !important;
        font-weight: 600 !important;
        display: inline-block !important;
    }

        .auth-controls .forgot-link:hover,
        .login1.minimal .auth-controls .forgot-link:hover {
            opacity: 0.95 !important;
        }
    /* The .forgot-row is outside .auth-controls in the markup; target the actual container to align right */
    .login1.minimal .forgot-row, .panel.panel-bordered.panel-primary.login2 .forgot-row, .panel.panel-bordered .forgot-row {
        width: 100% !important;
        display: flex !important;
        justify-content: flex-end !important; /* align link to the right under password input */
        margin: 6px 0 0 0 !important;
    }

        .login1.minimal .forgot-row .forgot-link,
        .panel.panel-bordered.panel-primary.login2 .forgot-row .forgot-link,
        .panel.panel-bordered .forgot-row .forgot-link {
            text-decoration: none !important;
            color: #3C774A !important;
            border-bottom: 2px solid #dcdcdc !important; /* gray underline */
            padding-bottom: 2px !important;
            font-weight: 600 !important;
            display: inline-block !important;
        }

            .login1.minimal .forgot-row .forgot-link:hover,
            .panel.panel-bordered .forgot-row .forgot-link:hover {
                opacity: 0.95 !important;
            }
    /* If markup contains a plain div with the anchor (div > a.forgot-link), target the actual structure and force left alignment + gray underline */
    .login1.minimal .panel.panel-bordered.panel-primary.login2 .panel-body > div > a.forgot-link,
    .login1 .panel.panel-bordered.panel-primary.login2 .panel-body > div > a.forgot-link,
    .panel.panel-bordered.panel-primary.login2 .panel-body > div > a.forgot-link {
        float: left !important;
        clear: both !important;
        display: inline-block !important;
        margin: 6px 0 0 0 !important;
        color: #3C774A !important;
        text-decoration: none !important;
        border-bottom: 2px solid #dcdcdc !important;
        padding-bottom: 2px !important;
        font-weight: 600 !important;
    }
        /* Restore normal flow after the floated link for the specific selectors */
        .login1.minimal .panel.panel-bordered.panel-primary.login2 .panel-body > div > a.forgot-link::after,
        .panel.panel-bordered.panel-primary.login2 .panel-body > div > a.forgot-link::after {
            content: "";
            display: block;
            clear: both;
        }
}

.forgot-link2 {
    text-decoration: underline;
    font-weight: 600;
    color: #7d7979;
}

.div-forgot-link2 {
    text-align: right !important;
}