/* ADDED BY JOHN - 16/03/2026 */
/* Modern styling additions */
body {
    background-color: #f8fafc;
}

.login-split {
    height: calc(100vh - 180px);
    min-height: 480px;
}

.login-image-side img {
    max-width: 55%;       /* was 80% */
    max-height: 55vh;     /* prevents it from stretching tall */
    filter: drop-shadow(0px 15px 25px rgba(0, 0, 0, 0.25));
    transition: transform 0.4s ease;
    z-index: 2;
    margin-top: 0;        /* was 10% — remove the extra top push */
}

.login-image-side::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    top: -50%;
    left: -50%;
}

.login-image-side img {
    max-width: 80%;
    filter: drop-shadow(0px 15px 25px rgba(0, 0, 0, 0.25));
    transition: transform 0.4s ease;
    z-index: 2;
    margin-top: 10%;
    /* Center the image a bit more */
}

.login-image-side img:hover {
    transform: translateY(-8px);
}

.login-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f0f4ff 0%, #e8f0fe 50%, #ede9fe 100%);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

/* ===== ICON-INSIDE INPUT WRAPPER ===== */
.modern-field-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.modern-field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    z-index: 5;
    font-size: 0.85rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.modern-field-wrap:focus-within .modern-field-icon {
    color: #667eea;
}

.modern-field-wrap .modern-input {
    padding-left: 48px !important;
}

.modern-card {
    width: 100%;
    max-width: 650px;
    padding: 2.5rem;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: background 0.5s ease, border-color 0.5s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.modern-card .input-group {
    flex-wrap: nowrap !important;
}

.modern-card .modern-input,
.modern-card .form-control.modern-input {
    border-radius: 8px !important;
    padding: 0.8rem 1.25rem !important;
    height: calc(3.5rem + 2px) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3) !important;
    background-color: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px);
    font-size: 0.85rem !important;
    color: #334155 !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

/* Specific adjustment for select elements to prevent text clipping */
select.modern-input,
.modern-card select.form-control.modern-input {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23667eea' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 16px 12px !important;
}


.modern-card .modern-input:focus,
.modern-card .form-control.modern-input:focus {
    border: 1px solid rgba(102, 126, 234, 0.3) !important;
    border-bottom: 2px solid #667eea !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1) !important;
    background-color: #ffffff !important;
    outline: none !important;
}

/* Validation Checkmarks */
.modern-card .modern-input.is-valid,
.modern-card .form-control.modern-input.is-valid {
    border-bottom: 2px solid #28a745 !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}


.modern-card .modern-input-group-text,
.modern-card .input-group-text.modern-input-group-text {
    border-radius: 8px 0 0 8px !important;
    background-color: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3) !important;
    border-right: none !important;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 0.85rem !important;
    min-width: 44px;
}

.modern-card .input-group:focus-within .modern-input-group-text {
    border: 1px solid rgba(102, 126, 234, 0.3) !important;
    border-bottom: 2px solid #667eea !important;
    background-color: #ffffff !important;
}

.modern-card .input-group:focus-within .modern-input-group-text i {
    color: #667eea !important;
    transition: color 0.3s ease;
}

.modern-card .modern-input-with-icon,
.modern-card .form-control.modern-input-with-icon {
    border-left: none !important;
    border-radius: 0 8px 8px 0 !important;
}

.modern-btn {
    border-radius: 12px !important;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.modern-select {
    border-radius: 8px !important;
    height: 3.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    background-color: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    color: #475569;
    /* Custom caret styling */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
}

.modern-select:focus {
    border-color: rgba(102, 126, 234, 0.3);
    border-bottom: 2px solid #667eea;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
    background-color: #ffffff !important;
}

/* Modern styling for the options inside the select */
.modern-select option {
    font-weight: 500;
    padding: 10px;
    background-color: #ffffff;
    color: #1e293b;
}

/* Dynamic container backgrounds based on selection */
.login-form-side {
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
}

/* The hue effect uses a pseudo-element radial gradient */
.login-form-side::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, transparent 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.6s ease, background 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

/* Custom Dropdown CSS */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.cd-header {
    border-radius: 8px;
    height: 3.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    color: #475569;
}

.cd-header:focus,
.cd-header.active {
    border-color: rgba(102, 126, 234, 0.3);
    border-bottom: 2px solid #667eea;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
    background-color: #ffffff;
}

.cd-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-top: 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    z-index: 10;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.cd-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cd-option {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 500;
    color: #1e293b;
    display: flex;
    align-items: center;
    transition: background 0.2s ease;
}

.cd-option:hover {
    background-color: #f8fafc;
}

.cd-option i {
    width: 24px;
    text-align: center;
}

/* ===== PREMIUM ENDORSED / TRUSTED COMPANIES FOOTER ===== */
.endorsed-section {
    background: transparent;
    padding: 15px 0 30px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.endorsed-bg-decoration {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 150px;
    background: radial-gradient(ellipse at top, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.endorsed-title {
    font-size: 0.70rem;
    font-weight: 800;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: #90a4ae;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.endorsed-title::after {
    content: "";
    display: block;
    width: 35px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    margin: 10px auto 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.endorsed-logos-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 15px 0;
    margin-bottom: 10px;
    /* Carousel Wheel Edge Fade Illusion */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.endorsed-track {
    display: flex;
    align-items: flex-start;
    gap: 35px;
    width: max-content;
    animation: scrollLeftWheel linear infinite; /* duration set dynamically in HTML */
}

.endorsed-track:hover {
    animation-play-state: paused;
}

@keyframes scrollLeftWheel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.endorsed-logo-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    width: 75px;
    flex-shrink: 0;
    text-decoration: none;
}

.endorsed-logo-item:hover {
    transform: translateY(-6px) scale(1.08);
}

.endorsed-logo-img-wrapper {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.endorsed-logo-item:hover .endorsed-logo-img-wrapper {
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.25);
    border-color: #667eea;
    background: #f8faff;
}

.endorsed-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.4s ease;
}

.endorsed-logo-item:hover .endorsed-logo-img {
    transform: scale(1.1);
}

.endorsed-logo-name {
    font-size: 0.6rem;
    color: #607d8b;
    font-weight: 700;
    text-align: center;
    line-height: 1.35;
    width: 100%;
    white-space: normal;
    transition: color 0.3s ease, opacity 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.8;
}

.endorsed-logo-item:hover .endorsed-logo-name {
    color: #667eea;
    opacity: 1;
}

.btn-see-all {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #455a64;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
}

.btn-see-all:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
    transform: translateY(-4px) translateX(-50%);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.3);
}

/* Slide-up panel */
#companiesPanel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 85vh;
    background: #fff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 36px rgba(0, 0, 0, 0.14);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.34, 1.1, 0.64, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#companiesPanel.open {
    transform: translateY(0);
}

#panelOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(3px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

#panelOverlay.open {
    opacity: 1;
    pointer-events: all;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.panel-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
}

.panel-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f0f4f8;
    cursor: pointer;
    font-size: 1rem;
    color: #546e7a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.panel-close-btn:hover {
    background: #e0e6ea;
}

.panel-search {
    padding: 10px 24px;
    flex-shrink: 0;
}

.panel-search input {
    width: 100%;
    padding: 9px 16px;
    border: 1.5px solid rgba(102, 126, 234, 0.25);
    border-radius: 50px;
    font-size: 0.9rem;
    outline: none;
    background: #f7fbff;
    transition: border-color 0.2s;
}

.panel-search input:focus {
    border-color: #667eea;
}

.panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 24px 24px;
}

.panel-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #90a4ae;
    margin: 16px 0 10px;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.company-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 12px 8px;
    border-radius: 14px;
    background: #f7fbff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: background 0.2s, transform 0.2s;
    cursor: default;
    text-decoration: none;
}

.company-card:hover {
    background: #eef0ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.12);
}

.company-card img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.company-card .c-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: #37474f;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
}

.company-card .c-badge {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 20px;
}

.badge-employer {
    background: #e8ebff;
    color: #3b5bdb;
}

.badge-org {
    background: #f3e8ff;
    color: #7c3aed;
}