/* TalentFlow — Robert Half–inspired frontend */

.public-topbar {
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    padding: 0.45rem 0;
}
.public-topbar a { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.public-topbar a:hover { color: #fff; }
.public-topbar i { margin-right: 0.35rem; font-size: 0.75rem; }
.public-topbar-divider {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 0.85rem;
    vertical-align: middle;
}

.public-header {
    background: #ffffff;
    border-bottom: 1px solid var(--erms-border);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.public-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 68px;
    padding: 0.5rem 0;
}

.public-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    flex-shrink: 0;
}
.public-logo:hover { text-decoration: none; }

.public-logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    background: var(--erms-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.public-logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--erms-text);
    line-height: 1.15;
}
.public-logo-text span { color: var(--erms-primary); }
.public-logo-text small {
    display: block;
    font-size: 0.6rem;
    color: var(--erms-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    margin-top: 2px;
}

.public-nav-menu {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    list-style: none !important;
    margin: 0;
    padding: 0;
    flex: 1;
}
.public-nav-menu li { list-style: none !important; margin: 0; padding: 0; }
.public-nav-menu a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--erms-text);
    text-decoration: none;
    border-radius: 4px;
    transition: color 0.15s;
}
.public-nav-menu a:hover { color: var(--erms-primary); background: transparent; }
.public-nav-menu a.active {
    color: var(--erms-primary);
    background: transparent;
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--erms-primary);
    border-radius: 0;
}

.public-nav-actions {
    display: none;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.public-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--erms-border);
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    color: var(--erms-text);
}

.public-mobile-nav {
    display: none !important;
    border-top: 1px solid var(--erms-border);
    background: #fff;
    padding: 1rem 0 1.25rem;
}
.public-mobile-nav.is-open { display: block !important; }
.public-mobile-nav ul { list-style: none !important; margin: 0; padding: 0; }
.public-mobile-nav li { list-style: none !important; margin-bottom: 0.25rem; }
.public-mobile-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--erms-text);
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
}
.public-mobile-nav a i { width: 20px; text-align: center; color: var(--erms-primary); }
.public-mobile-nav a:hover,
.public-mobile-nav a.active {
    background: var(--erms-green-light);
    color: var(--erms-primary);
}
.public-mobile-nav .mobile-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--erms-border);
}
.public-mobile-nav .mobile-actions .btn { flex: 1; font-size: 0.85rem; }

@media (min-width: 992px) {
    .public-nav-menu { display: flex !important; }
    .public-nav-actions { display: flex !important; }
    .public-nav-toggle { display: none !important; }
    .public-mobile-nav { display: none !important; }
}

.public-main {
    min-height: calc(100vh - 280px);
    background: var(--erms-bg);
}

.public-footer {
    background: var(--erms-footer-bg);
    color: var(--erms-footer-text);
}
.public-footer-top {
    padding: 4rem 0 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.public-footer-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}
.public-footer-brand span { color: var(--erms-primary); }
.public-footer-desc {
    font-size: 0.9rem;
    line-height: 1.75;
    max-width: 320px;
    margin-bottom: 1.5rem;
    color: var(--erms-footer-text);
}
.public-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    margin-right: 0.5rem;
    text-decoration: none;
    transition: background 0.2s;
}
.public-footer-social a:hover { background: var(--erms-primary); }
.public-footer h6 {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.public-footer-links { list-style: none !important; padding: 0; margin: 0; }
.public-footer-links li { list-style: none !important; margin-bottom: 0.65rem; }
.public-footer-links a {
    color: var(--erms-footer-text);
    font-size: 0.875rem;
    text-decoration: none;
}
.public-footer-links a:hover { color: #fff; }
.public-footer-bottom {
    padding: 1.5rem 0;
    font-size: 0.8125rem;
    color: var(--erms-footer-text);
}
.public-footer-bottom a { color: var(--erms-footer-text); text-decoration: none; }
.public-footer-bottom a:hover { color: #fff; }

.auth-page-wrap { padding: 3rem 0 4rem; background: var(--erms-bg); }
.auth-card {
    max-width: 440px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--erms-border);
    border-radius: 4px;
    box-shadow: var(--erms-shadow-lg);
    padding: 2.5rem;
}
.auth-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.35rem;
    color: var(--erms-text);
}
.auth-card-subtitle {
    text-align: center;
    color: var(--erms-text-muted);
    margin-bottom: 2rem;
}

/* Red primary buttons always use white label text */
.erms-frontend .btn-erms-primary,
.erms-frontend .btn-erms-sage,
.erms-frontend .btn-erms-green,
.erms-portal .btn-erms-primary,
.erms-portal .btn-erms-sage,
.erms-portal .btn-erms-green,
.erms-frontend a.btn-erms-primary,
.erms-portal a.btn-erms-primary {
    color: #fff !important;
}
.erms-frontend .btn-erms-primary:hover,
.erms-frontend .btn-erms-primary:focus,
.erms-frontend .btn-erms-primary:active,
.erms-frontend .btn-erms-sage:hover,
.erms-frontend .btn-erms-sage:focus,
.erms-frontend .btn-erms-green:hover,
.erms-frontend .btn-erms-green:focus,
.erms-portal .btn-erms-primary:hover,
.erms-portal .btn-erms-primary:focus,
.erms-portal .btn-erms-primary:active,
.erms-portal .btn-erms-sage:hover,
.erms-portal .btn-erms-sage:focus,
.erms-portal .btn-erms-green:hover,
.erms-portal .btn-erms-green:focus {
    color: #fff !important;
}

/* Transparent outline buttons on dark backgrounds */
.hero-section .btn-erms-outline,
.cta-section .btn-outline-light {
    color: #fff !important;
    background: transparent;
    border-color: #fff;
}
.hero-section .btn-erms-outline:hover,
.hero-section .btn-erms-outline:focus {
    color: var(--erms-text) !important;
    background: #fff;
    border-color: #fff;
}
.cta-section .btn-outline-light:hover,
.cta-section .btn-outline-light:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}
