/* ============================================================
   LE TACOS - MODALS CSS (Login/Register + General)
   ============================================================ */

/* ---- Modal Overlay ---- */
.lt-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99990;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: overlayFadeIn 0.25s ease;
}

.lt-modal-overlay.open { display: flex; }

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---- Modal Box ---- */
.lt-modal-box {
    background: white;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideUp 0.3s ease;
    position: relative;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Modal Header ---- */
.lt-modal-header {
    padding: 40px 48px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lt-modal-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    margin: 0 auto 16px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.lt-modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.lt-modal-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ---- Tab Switcher (Login / Register) ---- */
.lt-auth-tabs {
    display: flex;
    gap: 0;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 4px;
    margin: 20px 28px 0;
}

.lt-auth-tab {
    flex: 1;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.lt-auth-tab.active {
    background: white;
    color: var(--lt-green-dark);
    box-shadow: var(--shadow-xs);
}

/* ---- Modal Body / Form ---- */
.lt-modal-body {
    padding: 24px 28px 28px;
}

.lt-auth-form { display: none; }
.lt-auth-form.active { display: block; }

/* Form Group */
.lt-form-group {
    margin-bottom: 16px;
}

.lt-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.lt-form-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    background: var(--bg-light);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: all var(--transition-base);
    outline: none;
}

.lt-form-input:focus {
    background: white;
    border-color: var(--lt-green-dark);
    box-shadow: 0 0 0 3px rgba(234,88,12,0.1);
}

.lt-form-input::placeholder { color: var(--text-muted); }

.lt-form-input.error {
    border-color: var(--lt-red);
    box-shadow: 0 0 0 3px rgba(229,57,53,0.1);
}

/* Password input wrapper */
.lt-input-wrap {
    position: relative;
}

.lt-input-wrap .lt-form-input { padding-right: 44px; }

.lt-input-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.lt-input-toggle:hover { color: var(--lt-green-dark); }

/* Error message */
.lt-form-error {
    display: none;
    color: var(--lt-red);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 5px;
}
.lt-form-error.visible { display: block; }

/* Form Submit Button */
.lt-form-submit {
    width: 100%;
    height: 48px;
    background: var(--lt-green-dark);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-green);
}

.lt-form-submit:hover {
    background: var(--lt-green-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(234,88,12,0.35);
}

.lt-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Alert inside modal */
.lt-modal-alert {
    display: none;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
}
.lt-modal-alert.visible { display: block; }
.lt-modal-alert.error {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}
.lt-modal-alert.success {
    background: #F0FDF4;
    color: #15803D;
    border: 1px solid #BBF7D0;
}

/* Close Button */
.lt-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    transition: all var(--transition-fast);
}
.lt-modal-close:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

/* ---- Order Animation Overlay ---- */
.lt-order-animation-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(234,88,12,0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
    color: white;
}
.lt-order-animation-overlay.active { display: flex; }

.lt-order-animation-box {
    text-align: center;
}

.lt-courier-track {
    width: 280px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    position: relative;
    margin: 24px auto 16px;
    overflow: hidden;
}

.lt-courier-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--lt-yellow);
    border-radius: 2px;
    width: 0;
    transition: width 2s ease;
}

.lt-courier-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: left 2s ease;
    left: 0;
}

.lt-order-anim-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.lt-order-anim-subtitle {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
}
