/* ============================================================
   BHP Careers – Candidate Login / Registration pages
   High-fidelity recreation of the reference SuccessFactors
   auth pages (career8.successfactors.com):

   - black header (#header role="banner"): 10px white top border,
     BHP logo, "Search jobs" / "Why work for BHP?" links,
     39px black submenu with "BHP Employee / Contractor Login"
   - centered 696px-wide form panel with grey #999 titles,
     2-column table (right-aligned labels), 400px inputs,
     orange #EF6E23 "Sign In" / "Create Account" buttons
   - black footer with 5 white links + white social icons
   ============================================================ */

/* ---------- Auth page base ---------- */
.auth-body {
    background: #fff;
    margin: 0;
}

/* ---------- Black header ---------- */
.auth-header {
    background: #000;
    max-width: 1200px;
    margin: 0 auto; /* centered on white body */
}
.auth-header-bordertop {
    background: #fff;
    height: 10px;
}
.auth-header-upper {
    padding: 20px 0;
}
.auth-header-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.auth-header-logo {
    display: block;
    line-height: 0;
}
.auth-header-logo img.logo {
    display: block;
    width: 112px;
    height: 62px;
    vertical-align: middle;
}
.auth-header-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}
.auth-header-nav li {
    margin: 0;
    padding: 0;
}
.auth-header-nav a {
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    line-height: 18.571px;
    white-space: nowrap;
}
.auth-header-nav a:hover {
    color: #fff;
    text-decoration: underline;
}

.auth-header-submenu {
    background: #000;
    height: 39px;
    padding: 12px 0;
}
.auth-header-submenu-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}
.auth-header-submenu-links {
    float: right;
}
.auth-header-submenu-links a {
    display: inline-block;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    line-height: 13px;
}
.auth-header-submenu-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ---------- Main content ---------- */
.auth-main {
    max-width: 1170px;
    margin: 0 auto;
    padding: 20px 15px 40px;
    min-height: 50vh;
}

/* ---------- Form panel ---------- */
.auth-panel-wrap {
    display: flex;
    justify-content: center;
    padding: 5px 0 20px;
}
.auth-panel {
    width: 696px;
    max-width: 100%;
}

.page_title h1 {
    font-family: "Trebuchet MS", Arial, Verdana, sans-serif;
    font-size: 17.875px;
    font-weight: 700;
    color: #999;
    margin: 0 0 30px;
    line-height: 1.2;
}

.auth-panel-body {
    background: #fff;
}

/* Section heading, e.g. "Already have an account?" */
.auth-panel-body h2 {
    font-family: "Trebuchet MS", Arial, Verdana, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #999;
    line-height: 16.5px;
    margin: 6px 0 2px 20px;
}

.auth-intro {
    font-family: "Trebuchet MS", Arial, Verdana, sans-serif;
    font-size: 13.5px;
    color: #000;
    margin: 3px 0 2px 20px;
}

.requiredMessage {
    font-family: "Trebuchet MS", Arial, Verdana, sans-serif;
    font-size: 13.5px;
    color: #000;
    margin: 2px 0 5px 20px;
}
.requiredMessage .required,
.auth-table .required {
    color: #e60000;
}

.auth-bottom-link {
    font-family: "Trebuchet MS", Arial, Verdana, sans-serif;
    font-size: 13.5px;
    color: #000;
    margin: 0 20px 10px;
}
.auth-bottom-link a {
    color: #123556;
    text-decoration: underline;
    font-weight: 600;
}
.auth-bottom-link a:hover { text-decoration: underline; }
#loginHelpText {
    font-size: 13.5px;
    color: #000;
}

.auth-errors,
.auth-field-error {
    list-style: none;
    margin: 6px 20px 10px;
    padding: 0;
    color: #b3261e;
    font-family: "Trebuchet MS", Arial, Verdana, sans-serif;
    font-size: 13px;
}

/* ---------- Form table ---------- */
.auth-table {
    border-collapse: collapse;
    width: 100%;
}
.auth-table td {
    padding: 4px 5px;
    vertical-align: top;
}
.auth-table td:first-child {
    width: 232px;
    max-width: 232px;
    text-align: right;
    padding-right: 5px;
    padding-top: 7px;
}
.auth-table label {
    display: inline;
    font-family: "Trebuchet MS", Arial, Verdana, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #000;
    text-align: right;
}

/* Inputs: 400px wide, 36px tall, 1px #6e6e6e border, Trebuchet 16px */
.auth-table input[type="text"],
.auth-table input[type="email"],
.auth-table input[type="password"],
.auth-table input[type="tel"] {
    width: 400px;
    max-width: 100%;
    height: 36px;
    border: 1px solid #6e6e6e;
    border-radius: 0;
    font-family: "Trebuchet MS", Arial, Verdana, sans-serif;
    font-size: 16px;
    color: #000;
    background: #fff;
    padding: 1px 2px 1px 5px;
    box-sizing: border-box;
}
.auth-table input:focus {
    outline: none;
    box-shadow: 0 0 3px 1px #005887;
}

/* Selects: 210px wide, 25px tall, light-grey background */
.auth-table select {
    width: 210px;
    max-width: 100%;
    height: 25px;
    border: 1px solid #6e6e6e;
    border-radius: 0;
    background: #efefef;
    font-family: "Trebuchet MS", Arial, Verdana, sans-serif;
    font-size: 13px;
    color: #000;
    cursor: pointer;
}

/* Password row: input + Show button */
.auth-pwd-row {
    display: flex;
    align-items: flex-start;
}
.auth-pwd-row input[type="text"],
.auth-pwd-row input[type="password"] {
    flex: 0 0 400px;
    max-width: 100%;
}

.auth-show-btn {
    background: #efefef;
    border: 2px outset #000;
    border-radius: 0;
    width: 54px;
    height: 36px;
    margin-left: 5px;
    font-family: "Trebuchet MS", Arial, Verdana, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #000;
    cursor: pointer;
    box-sizing: border-box;
    padding: 1px 6px;
}

/* Password policy box */
.auth-pwd-policy {
    width: 300px;
    max-width: 300px;
    font-size: 13px;
    font-family: "Trebuchet MS", Arial, Verdana, sans-serif;
    color: #31708f; /* rgb(49,112,143) */
    background-color: #d9edf7; /* rgb(217,237,247) */
    border: 1px solid #bce8f1; /* rgb(188,232,241) */
    border-radius: 0;
    padding: 0 0 1px;
    margin: 5px 0 10px;
}
.auth-pwd-policy ul {
    list-style: disc;
    margin: 4px 0 0 18px;
    padding: 0;
}
.auth-pwd-policy li {
    margin-bottom: 2px;
    line-height: 1.4;
}

/* Checkboxes */
.auth-checkbox {
    display: inline-flex;
    align-items: flex-start;
    font-family: "Trebuchet MS", Arial, Verdana, sans-serif;
    font-size: 13px;
    color: #000;
    cursor: pointer;
    margin-right: 24px;
}
.auth-checkbox input {
    margin: 2px 6px 0 0;
    width: 13px;
    height: 13px;
}

/* ---------- Buttons ---------- */
.auth-buttons {
    margin: 10px 0 0 237px;
    padding-bottom: 14px;
}
.auth-submit {
    background: #ef6e23; /* rgb(239,110,35) */
    color: #000;
    border: none;
    border-radius: 0;
    font-family: "Trebuchet MS", Arial, Verdana, sans-serif;
    font-size: 13px;
    font-weight: 700;
    height: 40px;
    width: 100px;
    cursor: pointer;
    padding: 1px 6px;
}
.auth-submit:hover {
    background: #d95f19;
}
.auth-submit-reg {
    width: 108px;
}

/* Button row (Sign In + "Forgot your password?") */
td.button_row {
    vertical-align: middle;
    padding: 5px!important;
}
td.button_row span.aquabtn {
    margin: 0 3.25px;
    display: inline;
}
td.button_row span.aquabtn button {
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}
td.button_row > span + span {
    margin-left: 4px;
}
td.button_row a {
    color: #123556;
    font-family: "Trebuchet MS", Arial, Verdana, sans-serif;
    font-size: 13px;
    font-weight: 400;
    text-decoration: underline;
    border: 1px solid transparent;
    display: inline;
    line-height: 18.571px;
}
td.button_row a:hover {
    text-decoration: underline;
}

/* ---------- Bottom links ("Not a registered user yet?") ---------- */
.auth-bottom {
    margin: 10px 0 0 20px;
    padding-bottom: 20px;
}
.auth-bottom h2 {
    font-family: "Trebuchet MS", Arial, Verdana, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #999;
    line-height: 16.5px;
    margin: 6px 0 2px;
}
.auth-bottom-links {
    font-family: "Trebuchet MS", Arial, Verdana, sans-serif;
    font-size: 13.5px;
    color: #000;
    margin: 3px 0 6px;
}
.auth-bottom-links a {
    color: #123556;
    text-decoration: underline;
    font-weight: 600;
}

/* ---------- Black footer ---------- */
.auth-footer {
    background: #000;
    color: #fff;
}
.auth-footer-row {
    background: #000;
    padding: 15px;
}
#footerRowBottom.auth-footer-row {
    min-height: 10px;
    padding: 0;
}
.auth-footer-row-inner {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.auth-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}
.auth-footer-links li {
    margin: 0;
    padding: 0 12px 0 0;
}
.auth-footer-links li + li {
    padding-left: 12px;
    border-left: 1px solid #fff;
}
.auth-footer-links a {
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
}
.auth-footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.auth-footer-social-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
}
.auth-footer-social-list .social-icons {
    margin: 0;
    padding: 0;
}
.auth-footer-social-list a {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
    margin: 0 9px 0 0;
    border: 1px solid transparent;
}
.auth-footer-social-list a.btn-twitter {
    padding: 8px 0;
}
.auth-footer-social-list a:hover {
    opacity: 0.85;
}
.auth-footer-social-list .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
    .auth-header-upper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .auth-table input[type="text"],
    .auth-table input[type="email"],
    .auth-table input[type="password"],
    .auth-table input[type="tel"] {
        width: 100%;
    }
    .auth-pwd-row input[type="text"],
    .auth-pwd-row input[type="password"] {
        flex: 1 1 auto;
    }
    .auth-buttons {
        margin-left: 0;
    }
    .auth-table td:first-child {
        width: 150px;
        max-width: 150px;
    }
}

/* ---------- Sign in with Google ---------- */
.google-signin-wrap {
    margin: 2px 0 14px 20px;
}
.google-signin-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 4px;
    color: #3c4043;
    font-family: "Trebuchet MS", Arial, Verdana, sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.google-signin-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.25);
}
.google-signin-btn:focus-visible {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}
.google-signin-btn .google-g {
    flex-shrink: 0;
}

.google-or-divider {
    display: flex;
    align-items: center;
    margin: 0 20px 10px 0;
    max-width: 460px;
    color: #5f6368;
    font-family: "Trebuchet MS", Arial, Verdana, sans-serif;
    font-size: 12.5px;
}
.google-or-divider::before,
.google-or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}
.google-or-divider span {
    padding: 0 12px;
}

/* Google button row inside the auth table (below password, above Sign In) */
td.google-inline {
    padding-top: 12px;
    padding-bottom: 12px;
    vertical-align: middle;
}
td.google-inline .google-signin-btn {
    margin-left: 0;
}

/* ---------- Google sign-in modal ---------- */
.google-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}
.google-modal.open {
    display: block;
}
.google-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(32, 33, 36, 0.6);
}
.google-dialog {
    position: relative;
    z-index: 1;
    width: 420px;
    max-width: calc(100vw - 32px);
    margin: 80px auto 0;
    background: #fff;
    border-radius: 8px;
    padding: 40px 36px 24px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18), 0 20px 60px rgba(0, 0, 0, 0.3);
    font-family: "Trebuchet MS", Arial, Verdana, sans-serif;
}
.google-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #5f6368;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
}
.google-close:hover {
    background: #f1f3f4;
}
.google-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}
.google-brand .google-g {
    flex-shrink: 0;
}
.google-brand span {
    font-size: 24px;
    font-weight: 400;
    color: #202124;
    line-height: 1.2;
}
.google-account-hint {
    font-size: 16px;
    color: #202124;
    margin-bottom: 22px;
}
.google-step {
    margin-bottom: 18px;
}
.google-field-label {
    display: block;
    font-size: 13px;
    color: #202124;
    margin-bottom: 4px;
}
.google-input {
    width: 100%;
    height: 44px;
    padding: 2px 10px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-family: "Trebuchet MS", Arial, Verdana, sans-serif;
    font-size: 16px;
    color: #202124;
    box-sizing: border-box;
}
.google-input:focus {
    outline: none;
    border: 2px solid #4285f4;
}
.google-help {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}
.google-help:hover {
    color: #1765cc;
    text-decoration: underline;
}
.google-password-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}
.google-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #202124;
    cursor: pointer;
}
.google-checkbox input {
    width: 16px;
    height: 16px;
}
.google-checkbox + .google-help {
    margin-top: 0;
}
.google-error {
    background: #fce8e6;
    border: 1px solid #f5c6c2;
    border-radius: 4px;
    color: #c5221f;
    font-size: 13.5px;
    padding: 10px 12px;
    margin-bottom: 16px;
}
.google-error[hidden] {
    display: none;
}
.google-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}
.google-text-link {
    color: #1a73e8;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.google-text-link:hover {
    color: #1765cc;
    text-decoration: underline;
}
.google-actions {
    display: flex;
    gap: 8px;
}
.google-btn {
    border: none;
    border-radius: 4px;
    font-family: "Trebuchet MS", Arial, Verdana, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
}
.google-btn-flat {
    background: transparent;
    color: #1a73e8;
}
.google-btn-flat:hover {
    background: #e8f0fe;
}
.google-btn-blue {
    background: #1a73e8;
    color: #fff;
}
.google-btn-blue:hover:not(:disabled) {
    background: #1765cc;
}
.google-btn:focus-visible {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}
.google-legal {
    margin-top: 26px;
    font-size: 12px;
    color: #5f6368;
    line-height: 1.5;
}
.google-legal .google-text-link {
    font-size: 12px;
    font-weight: 400;
}

body.google-modal-open {
    overflow: hidden;
}
