/* ==========================================================================
   Index View Specific CSS (Sign In Form)
   ========================================================================== */

.login-container {
    max-width: 960px;
    width: 100%;
    margin: 6rem auto 3rem auto;
    flex: 1;
    padding: 0 1.25rem;
}

/* --------------------------------------------------------------------------
   Travelpack Consumer Site Searchbar Style (.tp-theme)
   -------------------------------------------------------------------------- */
body.tp-theme .tp-form-container {
    max-width: 1050px;
}

body.tp-theme .tp-searchbar-card {
    background-color: var(--tp-searchbar-bg, #cab1e1);
    border-radius: 12px;
    padding: 26px 28px;
    box-shadow: 0 10px 32px rgba(0, 45, 98, 0.22);
}

body.tp-theme .tp-searchbar-title {
    color: var(--tp-blue, #002d62);
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    font-family: 'Roboto', sans-serif;
}

body.tp-theme .tp-searchform-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: #ffffff;
    padding: 12px 18px;
    border-radius: 9px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    gap: 12px;
}

body.tp-theme .tp-input-col {
    min-width: 220px;
}

body.tp-theme .tp-form-label {
    display: block;
    margin-bottom: 2px;
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: none; /* Proper case instead of all-caps */
    color: var(--tp-blue, #002d62);
    letter-spacing: 0;
}

body.tp-theme .tp-search-input {
    border: none;
    box-shadow: none;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--tp-blue, #002d62);
    padding: 4px 0;
    background: transparent;
}

body.tp-theme .tp-search-input:focus {
    outline: none;
    box-shadow: none;
    background: transparent;
}

body.tp-theme .tp-input-divider {
    width: 1px;
    height: 44px;
    background-color: #e2e8f0;
    margin: 0 8px;
}

body.tp-theme .tp-btn-col {
    display: flex;
    align-items: center;
}

body.tp-theme .tp-searchnow-btn {
    background-color: var(--tp-purple, #621394) !important;
    border-color: var(--tp-purple, #621394) !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.85rem 2rem;
    border-radius: 7px;
    white-space: nowrap;
    text-transform: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

body.tp-theme .tp-searchnow-btn:hover,
body.tp-theme .tp-searchnow-btn:focus {
    background-color: var(--tp-purple-alt, #4c1074) !important;
    border-color: var(--tp-purple-alt, #4c1074) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Mobile adjustments */
@media (max-width: 767.98px) {
    .login-container {
        margin: 2.5rem auto 2rem auto;
    }
    body.tp-theme .tp-searchform-row {
        flex-direction: column;
        align-items: stretch;
    }
    body.tp-theme .tp-btn-col button {
        width: 100%;
    }
    body.tp-theme .tp-searchbar-card {
        padding: 20px 16px;
    }
    body.tp-theme .tp-searchbar-title {
        font-size: 1.45rem;
    }
}

/* --------------------------------------------------------------------------
   Original Sub-Agent Classic Form (.agent-theme)
   -------------------------------------------------------------------------- */
body.agent-theme .login-container {
    max-width: 620px;
    margin: 4.5rem auto 3rem auto;
}

body.agent-theme .card {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background: #ffffff;
}

body.agent-theme .card-header {
    text-align: center;
    padding: 1.25rem 1.75rem;
    border-bottom: none;
}

body.agent-theme .card-header h4 {
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.2px;
}

body.agent-theme .card-body {
    padding: 2rem 2.25rem !important;
}

body.agent-theme .form-label {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.45rem;
}
