/* Customer / driver login, registration & account pages.
   Reuses the site's existing CSS variables (--text-primary, --title-color,
   --white-clr) set in main.css / css.blade.php so these pages track the
   business's brand colors automatically instead of being hardcoded. */

.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    padding: 32px 24px;
}

@media (min-width: 576px) {
    .auth-card {
        padding: 48px 40px;
    }
}

.auth-card--driver {
    border-top: 4px solid var(--text-primary);
}

.auth-badge {
    display: inline-block;
    background: rgba(var(--btn-rgb, 20, 177, 158), 0.12);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.auth-card__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 6px;
}

.auth-card__subtitle {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 28px;
}

.auth-form .form-label {
    font-weight: 500;
    color: var(--title-color);
    font-size: 14px;
}

.auth-form .form-control {
    border-radius: 10px;
    border: 1px solid #e3e6ea;
    padding: 10px 14px;
}

.auth-form .form-control:focus {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--btn-rgb, 20, 177, 158), 0.15);
}

.auth-password-field {
    position: relative;
}

.auth-password-field .form-control {
    padding-right: 44px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    padding: 4px;
    line-height: 1;
}

.auth-link {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.auth-card__footer {
    text-align: center;
    font-size: 14px;
    color: #6c757d;
    margin-top: 18px;
    margin-bottom: 0;
}

.auth-card__footer a {
    color: var(--text-primary);
    font-weight: 600;
}

.auth-summary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    border: 1px solid #edf0f2;
    border-radius: 12px;
    overflow: hidden;
}

.auth-summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid #edf0f2;
}

.auth-summary-list li:last-child {
    border-bottom: none;
}

.auth-summary-list li span {
    color: #6c757d;
}

.auth-summary-list li strong {
    color: var(--title-color);
    text-align: right;
    word-break: break-word;
}

.auth-referral-box {
    background: #f8fafb;
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
}

.auth-referral-box .input-group .form-control {
    border-radius: 10px 0 0 10px;
    font-size: 13px;
}

.auth-referral-box .input-group .cmn--btn {
    border-radius: 0 10px 10px 0;
}

.auth-status {
    font-size: 14px;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 20px;
}

.auth-status--active {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.auth-status--pending {
    background: rgba(255, 193, 7, 0.15);
    color: #b8860b;
}

.auth-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.auth-service-option {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    cursor: pointer;
}

.auth-service-option:has(input:checked) {
    border-color: var(--text-primary);
    background: rgba(var(--btn-rgb, 20, 177, 158), 0.06);
}

/* Header quick-login dropdown */
.auth-nav-dropdown__menu {
    min-width: 260px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #edf0f2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.auth-quick-form .form-control {
    border-radius: 8px;
}

.auth-quick-links {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 12px;
}

.auth-quick-links a {
    color: var(--text-primary);
}

@media (max-width: 991.98px) {
    .auth-nav-dropdown__menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        padding: 12px 0 0;
    }
}

.auth-account-menu__greeting {
    font-weight: 600;
    color: var(--title-color);
    margin-bottom: 10px;
}

.auth-account-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.auth-account-links a {
    color: var(--title-color);
}

.auth-account-links a:hover {
    color: var(--text-primary);
}

/* ---------------------------------------------------------------------
   Phase 2: account dashboard - profile / trips / documents / earnings
   --------------------------------------------------------------------- */

.dash-wrap {
    max-width: 980px;
    margin: 0 auto;
}

.dash-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.dash-nav a {
    flex: 1 1 auto;
    text-align: center;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    white-space: nowrap;
}

.dash-nav a:hover {
    background: #f8fafb;
    color: var(--title-color);
}

.dash-nav a.active {
    background: var(--text-primary);
    color: #fff;
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.dash-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

.dash-stat-card__label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}

.dash-stat-card__value {
    font-size: 22px;
    font-weight: 700;
    color: var(--title-color);
}

.dash-stat-card--highlight {
    border: 1px solid var(--text-primary);
    background: rgba(var(--btn-rgb, 20, 177, 158), 0.06);
}

.dash-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    padding: 24px 20px;
    margin-bottom: 20px;
}

@media (min-width: 576px) {
    .dash-section {
        padding: 32px 28px;
    }
}

.dash-section__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 4px;
}

.dash-section__subtitle {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 20px;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.dash-table th {
    text-align: left;
    color: #6c757d;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 10px 12px;
    border-bottom: 1px solid #edf0f2;
    white-space: nowrap;
}

.dash-table td {
    padding: 12px;
    border-bottom: 1px solid #f3f5f6;
    color: var(--title-color);
    vertical-align: middle;
}

.dash-table tr:last-child td {
    border-bottom: none;
}

.dash-table-wrap {
    overflow-x: auto;
}

.dash-empty {
    text-align: center;
    padding: 40px 16px;
    color: #6c757d;
    font-size: 14px;
}

.dash-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.dash-badge--pending { background: rgba(255, 193, 7, 0.15); color: #b8860b; }
.dash-badge--ongoing,
.dash-badge--accepted,
.dash-badge--out_for_pickup,
.dash-badge--approved { background: rgba(13, 110, 253, 0.12); color: #0d6efd; }
.dash-badge--completed,
.dash-badge--settled,
.dash-badge--active { background: rgba(25, 135, 84, 0.12); color: #198754; }
.dash-badge--cancelled,
.dash-badge--denied { background: rgba(220, 53, 69, 0.12); color: #dc3545; }

.dash-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.dash-doc-thumb {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #edf0f2;
    aspect-ratio: 1 / 1;
}

.dash-doc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}
