/*
 * ASRN Career Center - brand layer on top of Jobcy (child theme "asrn").
 * Loaded after Jobcy's app.css. Brand colors come from ASRN_Logo.ai:
 *   navy  #1C1F32  (primary: buttons, links, headings - set through the primary_color theme option)
 *   coral #DC5A58  (accent: large text / decoration only - 3.7:1 on white fails AA for small text)
 */
:root {
    --asrn-navy: #1c1f32;
    --asrn-coral: #dc5a58;
    /* Plain links (e.g. contact page mailto/tel) use Bootstrap's link color, which is NOT tied to Jobcy's
       primary_color and stayed purple (118,109,244). Navy for normal + hover; hover adds the underline. */
    --bs-link-color: #1c1f32;
    --bs-link-color-rgb: 28, 31, 50;
    --bs-link-hover-color: #1c1f32;
    --bs-link-hover-color-rgb: 28, 31, 50;
}

/* Header logo: the lockup is ~6.4:1. Jobcy inlines max-height:70px, so set an explicit height per breakpoint and
   cap the width so the logo can never squeeze or slide under the menu toggler on small phones. */
.navbar-brand .logo-dark {
    height: 46px;
    width: auto;
    max-width: 100%;
}

/* Homepage hero (search-box style-2) shows the photo undarkened in Jobcy 1.21.11 -> navy scrim so the white
   headline/subtitle stay readable on any photo. Lives inside .bg-overlay, so it stays under the hero content. */
#home .bg-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(28, 31, 50, 0.55) 0%, rgba(28, 31, 50, 0.72) 100%);
}

/* Highlighted words use Jobcy's yellow .text-warning -> ASRN coral (large bold headings only).
   Jobcy itself has `body#page-home .section .text-warning { color: #d39e00 !important }`, hence the #page-home
   selector (higher specificity) next to the generic one for other pages. */
body#page-home .section h2 .text-warning,
.section h2 .text-warning {
    color: var(--asrn-coral) !important;
}

/* Jobcy 1.21.11 bug: the AJAX featured-categories view ignores show_jobs_count="no" and prints an empty " Jobs"
   line (fixed upstream - the controller now passes showJobsCount). Hide that line when the shortcode turns counts off. */
.featured-job-categories-container[data-show-jobs-count="no"] p.text-muted.mb-0,
.job-categories-container[data-show-jobs-count="no"] .badge.bg-soft-info {
    display: none;
}

/* Jobcy 404 page: its .row gutter is 5px wider than the container padding on phones -> horizontal scroll. */
.bg-error {
    overflow-x: hidden;
}

/* Homepage hero (search-box style-2): the rotating specialty sits on its own line in ASRN coral
   (large bold text on the dark photo overlay - fine for contrast). Two lines reserved on phones, where the longest
   specialty wraps; the JS refines min-height to the tallest phrase at the current width. */
#home h1 .asrn-rotator,
#home h1 span.text-warning {
    display: block;
    color: var(--asrn-coral) !important;
    min-height: 1.2em;
    transition: opacity 0.3s ease;
}

#home h1 .asrn-rotator.is-fading {
    opacity: 0;
}

@media (max-width: 575.98px) {
    #home h1 .asrn-rotator,
    #home h1 span.text-warning {
        min-height: 2.4em;
    }
}

@media (prefers-reduced-motion: reduce) {
    #home h1 .asrn-rotator {
        transition: none;
    }
}

@media (max-width: 991.98px) {
    .navbar-brand .logo-dark {
        height: 36px;
        max-width: calc(100vw - 110px);
        object-fit: contain;
        object-position: left center;
    }
}

/* Sign in / sign up / forgot + reset password (Jobcy auth views, layout "without-navbar").
   Jobcy shows a cartoon illustration next to a navy form with translucent inputs. ASRN look: white form,
   navy text, real nursing photo on desktop, no picture on phones (logo + form only). */
.bg-auth {
    background-color: #f3f4f7;
}

.auth-box {
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(28, 31, 50, 0.08);
}

.auth-box .auth-content {
    background-color: #fff;
    border-left: 1px solid #eceef2;
}

.auth-box .auth-content.text-white,
.auth-box .auth-content h5,
.auth-box .auth-content .form-label,
.auth-box .auth-content.text-white .text-primary,
form.auth-form a {
    color: var(--asrn-navy) !important;
}

.auth-box .auth-content h5 {
    font-size: 1.5rem;
    font-weight: 700;
}

.auth-box .auth-content .text-white-70,
.auth-box .auth-content .text-white-50,
.auth-box .auth-content .text-center .text-white {
    color: #5b6072 !important;
}

.auth-box .auth-form .form-control {
    color: var(--asrn-navy);
    background-color: #fff;
    border-color: #d6dae1;
}

.auth-box .auth-form .form-control:focus {
    border-color: var(--asrn-navy);
    box-shadow: 0 0 0 3px rgba(28, 31, 50, 0.12);
}

.auth-box .auth-form .form-control::-webkit-input-placeholder {
    color: #8a8fa0 !important;
}

.auth-box .auth-form .form-control::placeholder {
    color: #8a8fa0 !important;
}

form.auth-form .auth-input-icon,
form.auth-form .input-password-toggle {
    color: #8a8fa0;
}

/* Photo column. A sign_in/sign_up_page_image theme option still wins; it gets the same rounded portrait crop. */
.auth-box .col-lg-6.text-center .mt-5 {
    margin-top: 2rem !important;
}

.auth-box .col-lg-6.text-center .mt-5 img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 12px;
}

/* Jobcy's bundled illustrations (themes/<theme>/images/auth/*.png) -> nursing photos shipped with this theme. */
.auth-box .mt-5:has(> img[src*="/images/auth/"]) {
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    background: #e9ebf0 url("../images/auth-sign-in-woman-with-phone.jpg") center / cover no-repeat;
}

.auth-box .mt-5:has(> img[src*="/images/auth/sign-up"]) {
    background-image: url("../images/auth-sign-up-heart-model.jpg");
}

.auth-box .mt-5 > img[src*="/images/auth/"] {
    display: none;
}

@media (max-width: 991.98px) {
    .bg-auth {
        align-items: flex-start;
        padding: 24px 0;
    }

    .auth-box .col-lg-6.text-center .mt-5 {
        display: none;
    }

    .auth-box .col-lg-6.text-center .card-body {
        padding: 2rem 1.5rem 0.5rem !important;
    }

    .auth-box .auth-content {
        border-left: 0;
        padding: 1.5rem !important;
    }

    .auth-box .logo-dark {
        height: 40px;
        width: auto;
    }
}
