/* ==============================================================
   AUTH USER — login / register / forgot / reset / confirm / verify pages,
   footer wala Login/Sign Up modal (#authModal),
   aur user account pages (dashboard, my bookings, profile, change password).
   Rang sirf navy, red, white, grey (style.css ke --smt-* vars).
   ============================================================== */

/* ====== AUTH PAGES ====== */
.au-auth { padding: 64px 0; background: var(--smt-soft); }
.au-auth-card { max-width: 480px; margin: 0 auto; padding: 36px 34px; border: 1px solid var(--smt-line); border-radius: var(--smt-radius); background: #fff; box-shadow: var(--smt-shadow-sm); }
.au-auth-icon { width: 56px; height: 56px; margin-bottom: 18px; border-radius: 16px; background: rgba(178, 14, 40, 0.08); color: var(--smt-red); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; }
.au-auth-title { font-weight: 700; font-size: 1.75rem; color: var(--smt-navy); margin-bottom: 6px; }
.au-auth-sub { color: var(--smt-muted); font-size: 0.92rem; line-height: 1.6; margin-bottom: 22px; }
.au-auth-label { display: block; margin-bottom: 6px; font-size: 0.85rem; font-weight: 600; color: var(--smt-navy); }
.au-auth-foot { margin-top: 16px; text-align: center; }
.au-auth-link { border: 0; background: none; padding: 0; color: var(--smt-navy); font-size: 0.88rem; font-weight: 600; text-decoration: underline; transition: color .2s; }
.au-auth-link:hover { color: var(--smt-red); }

/* ====== SHARED FORM PIECES (pages + modal) ====== */
.auth-field { position: relative; margin-bottom: 14px; }
.auth-field > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--smt-muted); font-size: 0.9rem; pointer-events: none; transition: color .2s; }
.auth-field .form-control { height: 48px; padding: 0 44px 0 44px; border: 1.5px solid var(--smt-line); border-radius: var(--smt-radius-sm); background: var(--smt-soft); color: var(--smt-navy); font-size: 0.92rem; transition: border-color .2s, background .2s, box-shadow .2s; }
.auth-field .form-control:focus { border-color: var(--smt-navy); background: #fff; box-shadow: 0 0 0 4px rgba(0, 30, 60, 0.08); }
.auth-field:focus-within > i { color: var(--smt-navy); }
.auth-field.has-error > i { color: var(--smt-red); }
.auth-field .form-control.is-invalid { border-color: var(--smt-red); background-image: none; }
.auth-field .form-control.is-invalid:focus { box-shadow: 0 0 0 4px rgba(178, 14, 40, 0.1); }
.auth-field:has(+ .auth-error) { margin-bottom: 6px; }
.auth-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 8px 10px; color: var(--smt-muted); transition: color .2s; }
.auth-eye:hover { color: var(--smt-navy); }

.auth-error { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; color: var(--smt-red); font-size: 0.8rem; line-height: 1.3; }
.auth-alert,
.auth-status { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin-bottom: 16px; border-radius: var(--smt-radius-sm); font-size: 0.86rem; font-weight: 500; line-height: 1.4; }
.auth-alert i,
.auth-status i { margin-top: 2px; }
.auth-alert { background: rgba(178, 14, 40, 0.07); border: 1px solid rgba(178, 14, 40, 0.25); color: var(--smt-red); }
.auth-status { background: rgba(0, 30, 60, 0.05); border: 1px solid rgba(0, 30, 60, 0.15); color: var(--smt-navy); }

.auth-row { font-size: 0.86rem; }
.auth-row .form-check { display: flex; align-items: center; gap: 8px; padding-left: 0; color: var(--smt-ink); cursor: pointer; }
.auth-row .form-check-input { float: none; margin: 0; }
.auth-row .form-check-input:checked { background-color: var(--smt-navy); border-color: var(--smt-navy); }
.auth-row a { color: var(--smt-navy); font-weight: 600; text-decoration: none; }
.auth-row a:hover { color: var(--smt-red); }

.auth-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; margin-top: 6px; border: 0; border-radius: var(--smt-radius-sm); background: var(--smt-red); color: #fff; font-weight: 700; font-size: 0.95rem; box-shadow: var(--smt-shadow-orange); transition: background .2s, transform .2s; }
.auth-submit:hover { background: var(--smt-navy); transform: translateY(-1px); }
.auth-submit:disabled { opacity: 0.75; transform: none; }

.auth-switch { margin: 18px 0 0; text-align: center; font-size: 0.88rem; color: var(--smt-muted); }
.auth-switch a { color: var(--smt-red); font-weight: 700; text-decoration: none; }
.auth-switch a:hover { color: var(--smt-navy); text-decoration: underline; }
.auth-terms { margin: 4px 0 8px; font-size: 0.8rem; color: var(--smt-muted); }
.auth-terms a { color: var(--smt-navy); font-weight: 600; }

/* ====== LOGIN / SIGN UP MODAL ======
   .am-* naam isliye ki style.css ki purani .auth-side / .auth-tabs se takkar na ho */
.auth-modal .modal-content { position: relative; overflow: hidden; border: 0; border-radius: var(--smt-radius); box-shadow: var(--smt-shadow-hover); }
.auth-modal .auth-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.am-side { flex-direction: column; justify-content: space-between; gap: 30px; padding: 36px 32px; background: var(--smt-navy); color: #fff; }
.am-side-logo { width: 100%; max-width: 190px; height: auto; margin-bottom: 28px; }
.am-side h3 { font-size: 1.6rem; font-weight: 700; line-height: 1.25; color: #fff; margin-bottom: 10px; }
.am-side p { font-size: 0.92rem; opacity: 0.85; margin: 0; }
.am-perks { list-style: none; padding: 0; margin: 0; }
.am-perks li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 0.9rem; }
.am-perks i { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.1); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.82rem; }
.am-main { padding: 36px 34px 30px; }

.am-tabs { position: relative; display: flex; margin: 0 40px 24px 0; padding: 5px; border-radius: 14px; background: var(--smt-soft); }
.am-tabs .auth-tab { position: relative; z-index: 1; flex: 1; padding: 10px 12px; border: 0; background: none; color: var(--smt-muted); font-weight: 700; font-size: 0.92rem; transition: color .25s; }
.am-tabs .auth-tab.active { color: var(--smt-navy); }
.am-tab-ink { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 10px; background: #fff; box-shadow: 0 4px 14px -6px rgba(0, 30, 60, 0.3); transition: transform .3s var(--smt-ease); }
.am-tabs.is-signup .am-tab-ink { transform: translateX(100%); }

.auth-pane { display: none; }
.auth-pane.active { display: block; animation: amFade .3s ease; }
.auth-pane h4 { font-size: 1.45rem; font-weight: 700; color: var(--smt-navy); margin-bottom: 4px; }
.auth-sub { font-size: 0.9rem; color: var(--smt-muted); margin-bottom: 20px; }
@keyframes amFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ====== HEADER — logged-in user dropdown ====== */
.nav-user .dropdown-toggle { display: inline-flex; align-items: center; }
.nav-user-menu { min-width: 210px; padding: 8px; margin-top: 8px !important; border: 1px solid var(--smt-line); border-radius: var(--smt-radius-sm); box-shadow: var(--smt-shadow-sm); }
.nav-user-menu .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--smt-ink); font-size: 0.88rem; font-weight: 600; transition: background .2s, color .2s; }
.nav-user-menu .dropdown-item i { width: 16px; text-align: center; color: var(--smt-muted); transition: color .2s; }
.nav-user-menu .dropdown-item:hover,
.nav-user-menu .dropdown-item:focus { background: var(--smt-soft); color: var(--smt-navy); }
.nav-user-menu .dropdown-item:hover i,
.nav-user-menu .dropdown-item:focus i { color: var(--smt-navy); }
.nav-user-menu .dropdown-item.active,
.nav-user-menu .dropdown-item:active { background: rgba(0, 30, 60, 0.07); color: var(--smt-navy); }
.nav-user-menu .dropdown-item.active i { color: var(--smt-red); }
.nav-user-menu .nav-user-logout { color: var(--smt-red); }
.nav-user-menu .nav-user-logout i { color: var(--smt-red); }
.nav-user-menu .nav-user-logout:hover { background: rgba(178, 14, 40, 0.07); color: var(--smt-red); }
.nav-user-menu .nav-user-logout:hover i { color: var(--smt-red); }
.nav-user-menu .dropdown-divider { margin: 6px 0; border-color: var(--smt-line); }

/* ==============================================================
   USER ACCOUNT PAGES — dashboard, my bookings, profile, change password
   ============================================================== */
.au-section { padding: 48px 0; background: var(--smt-soft); }
.au-title { font-weight: 700; font-size: 2rem; color: var(--smt-navy); margin-bottom: 20px; }

/* ====== CARD ====== */
.au-card { height: 100%; padding: 24px; border: 1px solid var(--smt-line); border-radius: var(--smt-radius); background: #fff; box-shadow: var(--smt-shadow-sm); }
.au-card-auto { height: auto; }
.au-card-narrow { max-width: 520px; height: auto; }
.au-card-title { font-weight: 700; font-size: 1.2rem; color: var(--smt-navy); margin-bottom: 16px; }
.au-card-sub { color: var(--smt-muted); font-size: 0.9rem; margin-bottom: 14px; }

/* ====== SIDEBAR ====== */
.au-sidebar { height: auto; padding: 16px; position: sticky; top: 90px; }
.au-user { display: flex; align-items: center; gap: 14px; padding: 8px 8px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--smt-line); }
.au-avatar { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: var(--smt-navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; letter-spacing: 0.02em; }
.au-user-info { min-width: 0; }
.au-user-name { font-weight: 700; color: var(--smt-navy); }
.au-user-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.85rem; color: var(--smt-muted); }
.au-sidebar form { margin: 0; }
.au-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; margin-bottom: 4px; border: 0; border-left: 3px solid transparent; border-radius: var(--smt-radius-sm); background: transparent; color: var(--smt-ink); font-weight: 600; text-align: left; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.au-link i { width: 18px; text-align: center; color: var(--smt-muted); transition: color .2s; }
.au-link:hover { background: var(--smt-soft); color: var(--smt-navy); }
.au-link:hover i { color: var(--smt-navy); }
.au-link.active { background: rgba(0, 30, 60, 0.06); border-left-color: var(--smt-red); color: var(--smt-navy); }
.au-link.active i { color: var(--smt-red); }

/* ====== STATS ====== */
.au-stat { height: 100%; padding: 22px; border: 1px solid var(--smt-line); border-radius: var(--smt-radius); background: #fff; box-shadow: var(--smt-shadow-sm); transition: transform .25s var(--smt-ease), box-shadow .25s; }
.au-stat:hover { transform: translateY(-4px); box-shadow: var(--smt-shadow); }
.au-stat-icon { width: 48px; height: 48px; margin-bottom: 14px; border-radius: 12px; background: rgba(178, 14, 40, 0.08); color: var(--smt-red); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.au-stat-num { font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--smt-navy); }
.au-stat-num.au-stat-soon { font-size: 1.1rem; line-height: 2.2rem; color: var(--smt-muted); }
.au-stat-lbl { margin-top: 6px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--smt-muted); }

/* ====== UPCOMING TRIPS ====== */
.au-trip { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 10px; border: 1px solid var(--smt-line); border-radius: var(--smt-radius-sm); color: inherit; text-decoration: none; transition: border-color .2s, background .2s; }
.au-trip:last-child { margin-bottom: 0; }
.au-trip:hover { border-color: var(--smt-navy); background: var(--smt-soft); color: inherit; }
.au-trip-logo { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; background: rgba(0, 30, 60, 0.07); color: var(--smt-navy); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; }
.au-trip-info { flex: 1; min-width: 0; }
.au-trip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--smt-navy); }
.au-trip-date { font-size: 0.85rem; color: var(--smt-muted); }

/* status badge — sirf theme ke rang */
.au-status { flex-shrink: 0; padding: 4px 12px; border-radius: 50rem; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.au-status.is-confirmed { background: rgba(0, 30, 60, 0.08); color: var(--smt-navy); }
.au-status.is-pending { background: var(--smt-soft-2); color: var(--smt-ink); }
.au-status.is-cancelled { background: rgba(178, 14, 40, 0.08); color: var(--smt-red); }
.au-status.is-completed { background: var(--smt-navy); color: #fff; }

/* ====== FORMS (profile, change password) ====== */
.au-label { display: block; margin-bottom: 6px; font-size: 0.85rem; font-weight: 600; color: var(--smt-navy); }
.au-input { height: 46px; border: 1.5px solid var(--smt-line); border-radius: var(--smt-radius-sm); background: var(--smt-soft); color: var(--smt-navy); font-size: 0.92rem; transition: border-color .2s, background .2s, box-shadow .2s; }
.au-input:focus { border-color: var(--smt-navy); background: #fff; box-shadow: 0 0 0 4px rgba(0, 30, 60, 0.08); }
.au-input.is-invalid { border-color: var(--smt-red); background-image: none; }
.au-input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(178, 14, 40, 0.1); }
.au-error { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--smt-red); font-size: 0.8rem; line-height: 1.3; }
.au-hint { margin-top: 6px; font-size: 0.8rem; color: var(--smt-muted); }
.au-hint.is-success { color: var(--smt-navy); font-weight: 600; }
.au-divider { margin: 28px 0 24px; border: 0; border-top: 1px solid var(--smt-line); opacity: 1; }
.au-link-btn { border: 0; background: none; padding: 0; color: var(--smt-navy); font-weight: 600; text-decoration: underline; }
.au-link-btn:hover { color: var(--smt-red); }
.au-alert { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 18px; border-radius: var(--smt-radius-sm); font-size: 0.88rem; font-weight: 500; }
.au-alert.is-success { background: rgba(0, 30, 60, 0.05); border: 1px solid rgba(0, 30, 60, 0.15); color: var(--smt-navy); }

/* password show/hide */
.au-pass { position: relative; }
.au-pass .au-input { padding-right: 46px; }
.au-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 8px 10px; color: var(--smt-muted); transition: color .2s; }
.au-eye:hover { color: var(--smt-navy); }

/* ====== BUTTONS ====== */
.au-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border: 0; border-radius: var(--smt-radius-sm); background: var(--smt-red); color: #fff; font-weight: 700; text-decoration: none; box-shadow: var(--smt-shadow-orange); transition: background .2s, transform .2s; }
.au-btn:hover { background: var(--smt-navy); color: #fff; transform: translateY(-2px); }
.au-btn-sm { display: inline-block; padding: 6px 14px; border: 1.5px solid var(--smt-navy); border-radius: 8px; background: transparent; color: var(--smt-navy); font-size: 0.8rem; font-weight: 700; text-decoration: none; transition: background .2s, color .2s; }
.au-btn-sm:hover { background: var(--smt-navy); color: #fff; }

/* ====== DELETE ACCOUNT ====== */
.au-danger-card { border-color: rgba(178, 14, 40, 0.3); }
.au-btn-danger { background: var(--smt-red); }
.au-btn-danger:hover { background: var(--smt-navy); }
.au-modal { padding: 28px; border: 0; border-radius: var(--smt-radius); box-shadow: var(--smt-shadow-hover); }
.au-modal-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 22px; }
.au-modal-actions .au-btn-sm { padding: 10px 18px; background: #fff; }
.au-modal-actions .au-btn-sm:hover { background: var(--smt-navy); }

/* ====== MY BOOKINGS ====== */
.au-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.au-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.au-pill { display: inline-block; padding: 8px 16px; border: 1px solid var(--smt-line); border-radius: 50rem; background: #fff; color: var(--smt-ink); font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.au-pill:hover { border-color: var(--smt-navy); color: var(--smt-navy); }
.au-pill.active { border-color: var(--smt-navy); background: var(--smt-navy); color: #fff; }
.au-search { max-width: 260px; }
.au-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.au-table th { padding: 12px 14px; border-bottom: 1px solid var(--smt-line); background: var(--smt-soft); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--smt-navy); white-space: nowrap; }
.au-table td { padding: 14px; border-bottom: 1px solid var(--smt-line); color: var(--smt-ink); vertical-align: middle; white-space: nowrap; }
.au-table tbody tr:last-child td { border-bottom: 0; }
.au-table tbody tr:hover td { background: rgba(0, 30, 60, 0.03); }
.au-table td a:not(.au-btn-sm) { color: var(--smt-red); font-weight: 600; }
.au-ref { padding: 4px 8px; border-radius: 6px; background: rgba(0, 30, 60, 0.07); color: var(--smt-navy); font-family: monospace; font-size: 0.82rem; font-weight: 700; }

/* ====== TRAVEL INSPIRATION ====== */
.au-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.au-tag { padding: 6px 12px; border-radius: 8px; background: rgba(0, 30, 60, 0.07); color: var(--smt-navy); font-size: 0.78rem; font-weight: 600; }

/* ====== RESPONSIVE ====== */
@media (max-width: 991.98px) {
    .au-section { padding: 32px 0; }
    .au-sidebar { position: static; }
    .au-title { font-size: 1.6rem; }
}
@media (max-width: 767.98px) {
    .au-card { padding: 18px; }
    .au-stat { padding: 16px; }
    .au-stat-num { font-size: 1.6rem; }
    .au-toolbar { align-items: stretch; }
    .au-search { max-width: none; width: 100%; }
    .au-modal { padding: 22px 18px; }
    .au-auth { padding: 36px 0; }
    .au-auth-card { padding: 28px 20px; }
    .au-auth-title { font-size: 1.45rem; }
    .am-main { padding: 26px 20px 22px; }
    .am-tabs { margin-right: 36px; }
    .auth-pane h4 { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    .au-stat:hover, .au-btn:hover { transform: none; }
    .auth-pane.active { animation: none; }
    .am-tab-ink { transition: none; }
}
