/* =====================================================================
   Login Page Styles
   ---------------------------------------------------------------------
   Scoped to the public login page (templates/login.tpl).
   Covers:
     - #login-tabs and BS5 nav-pills (green-pill login type selector)
     - .wbox / .alert h2 / .tab-content h3 / .login-tab / label
     - .btn-facebook (Facebook brand button)
     - #or::before/::after ("or" divider between password and OAuth)
     - .btn-ms / .ms-logo (Microsoft sign-in button)
   All colors pulled from /libs/css/colors.css unless noted as a
   third-party brand color (Facebook / Microsoft) that has no project
   variable equivalent.
   ===================================================================== */

#login-tabs {
    /* #cddfb7 — pale-green chip background. No matching var in colors.css; flagged for future --green-pale */
    background-color: #cddfb7 !important;
    border-radius: 30px;
    text-align: center;
    padding: 10px;
}

/* Base styling for all nav pills */
#login-tabs li {
    width: 48%;
}

#login-tabs .nav-link {
    background-color: transparent;
    border-radius: 20px;
    transition: background-color 0.3s, color 0.3s;
}

/* Active tab */
#login-tabs.nav-pills a {
    border-radius: 20px;
    color: var(--green-primary-80);
}

#login-tabs .nav-link.active,
#login-tabs.nav-pills > li.active > a {
    background-color: var(--green-primary) !important;
    color: var(--white) !important;
}

/* Hover state */
#login-tabs a:hover {
    background-color: var(--white-50);
    color: var(--green-primary);
}

/* Keep text on focus */
#login-tabs .nav-link:focus {
    color: var(--white);
    background-color: var(--green-primary-50);
}

.wbox {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 5px !important;
}

.alert h2 {
    margin-top: 0px !important;
}

.tab-content h3 {
    margin-top: 0px !important;
}

.login-tab {
    width: 50%;
}

.login-tab a {
    background-color: transparent !important;
}

label {
    color: var(--grey-6f);
    font-weight: normal !important;
}

.tab-content {
    margin-top: -3px !important;
}

.login-tab.active {
    background-color: var(--grey-tetradic) !important;
}

.login-tab a:hover {
    background-color: var(--grey-white) !important;
}

.login-tab.active a:hover {
    background-color: var(--grey-tetradic) !important;
}

/* Facebook brand button */
.btn-facebook {
    background: var(--facebook-blue);
    border-radius: 0;
    color: var(--white);
    border-width: 1px;
    border-style: solid;
    /* #263961 — Facebook brand darker border; no exact var (closest --facebook-blue-darkest #23345a) */
    border-color: #263961;
}

.btn-facebook:link,
.btn-facebook:visited {
    color: var(--white);
}

.btn-facebook:active,
.btn-facebook:hover {
    /* #263961 — Facebook brand darker hover; same brand-exception as above */
    background: #263961;
    color: var(--white);
}

/* "OR" divider — horizontal lines on both sides of #or text */
#or::before,
#or::after {
    display: inline-block;
    content: "";
    border-top: 2px solid var(--grey-footer-border);
    width: 30%;
    margin: 0 5px;
    transform: translateY(-4px);
}

/* Microsoft sign-in button — colors mandated by Microsoft brand guidelines */
.btn-ms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 41px;
    padding: 0 12px;
    margin-bottom: 20px;
    background: var(--white);
    /* #8C8C8C — Microsoft brand-recommended border color */
    border: 1px solid #8C8C8C;
    border-radius: 4px;
    /* #5E5E5E — Microsoft brand-recommended text color */
    color: #5E5E5E;
    font-weight: 600;
    font-size: 15px;
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    text-decoration: none;
}

.btn-ms .ms-logo {
    height: 18px;
    width: auto;
    display: block;
}
