/* Client portal: auth cards + logged-in account shell (matches public theme / --site-primary-color) */

.client-auth-page {
    min-height: 60vh;
    padding: 2.5rem 0 3.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 45%);
}

.client-auth-card {
    max-width: 440px;
    margin: 0 auto;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    padding: 2rem 2rem 2.25rem;
}

@media (min-width: 576px) {
    .client-auth-card--wide {
        max-width: 480px;
    }
}

.client-auth-card__title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.client-auth-card__lead {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.client-auth-card .form-control {
    border-radius: 0.5rem;
    border-color: #cbd5e1;
    padding: 0.65rem 0.85rem;
}

.client-auth-card .form-control:focus {
    border-color: var(--site-primary-color, #003087);
    box-shadow: 0 0 0 3px rgba(0, 169, 224, 0.22);
}

.client-auth-card label {
    font-weight: 600;
    color: #334155;
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
}

.client-auth-card .btn-primary {
    background: var(--site-bright-blue, #00A9E0);
    border-color: var(--site-bright-blue, #00A9E0);
    border-radius: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-weight: 600;
}

.client-auth-card .btn-primary:hover {
    filter: brightness(0.95);
}

.client-auth-card__footer {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: #64748b;
}

.client-auth-card__footer a {
    color: var(--site-primary-color, #003087);
    font-weight: 600;
}

.cp-alert {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.cp-alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.cp-alert--success {
    background: rgba(0, 177, 79, 0.1);
    color: var(--site-green, #00B14F);
    border: 1px solid rgba(0, 177, 79, 0.35);
}

.cp-alert--info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Logged-in portal */
.client-portal {
    padding: 2rem 0 3rem;
    min-height: 50vh;
}

.client-portal__header {
    margin-bottom: 1.5rem;
}

.client-portal__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.client-portal__subtitle {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
}

.client-portal__layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .client-portal__layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }

    .client-portal-sidebar {
        flex: 0 0 240px;
        position: sticky;
        top: 1rem;
    }

    .client-portal-main {
        flex: 1;
        min-width: 0;
    }
}

.client-portal-sidebar {
    width: 100%;
}

.client-portal-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

@media (min-width: 992px) {
    .client-portal-nav {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.25rem;
        padding: 0.75rem;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 0.75rem;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    }
}

.client-portal-nav__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 0.5rem;
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease;
}

.client-portal-nav__link:hover {
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
}

.client-portal-nav__link.is-active {
    background: rgba(0, 48, 135, 0.1);
    color: #0f172a;
    border-color: rgba(0, 169, 224, 0.4);
    font-weight: 600;
}

.client-portal-nav__link i {
    font-size: 1.1rem;
    opacity: 0.85;
    width: 1.25rem;
    text-align: center;
}

.client-portal-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.client-portal-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1rem;
}

.client-portal-card .table {
    margin-bottom: 0;
}

.client-portal-card .table thead th {
    border-top: none;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.client-portal-logout {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.client-portal-logout .btn {
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

/* Password form */
.client-portal .form-grid {
    display: grid;
    gap: 1rem;
    max-width: 420px;
}

.client-portal .form-grid .form-control {
    border-radius: 0.5rem;
}

.client-portal .notice {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.client-portal .notice.success {
    background: rgba(126, 211, 33, 0.12);
    color: var(--site-green, #00B14F);
    border: 1px solid rgba(0, 177, 79, 0.35);
}

.client-portal .notice.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Emails section with sidebar: tighten top spacing */
.client-portal-emails .page-header {
    margin-bottom: 0;
}

.client-portal-emails .service-section,
.client-portal-emails .about-section {
    padding-top: 2rem;
}

/* Booking form: account identity locked */
.booking-input-readonly,
.taxi-booking .form-control.booking-input-readonly,
.booking-form .form-control.booking-input-readonly {
    background-color: #f1f5f9 !important;
    cursor: not-allowed;
    color: #334155;
}
